diff --git a/app/controllers/projects/git/trees_controller.rb b/app/controllers/projects/git/trees_controller.rb index 05fd8c1ee..cd842112b 100644 --- a/app/controllers/projects/git/trees_controller.rb +++ b/app/controllers/projects/git/trees_controller.rb @@ -25,7 +25,7 @@ class Projects::Git::TreesController < Projects::Git::BaseController end def tags - @tags = @project.repo.tags.select{ |t| t.commit }.sort_by(&:name) + @tags = @project.repo.tags.select{ |t| t.commit }.sort_by(&:name).reverse render 'refs' end diff --git a/app/views/projects/git/trees/_tag.html.haml b/app/views/projects/git/trees/_tag.html.haml index 55ebab781..de6b88864 100644 --- a/app/views/projects/git/trees/_tag.html.haml +++ b/app/views/projects/git/trees/_tag.html.haml @@ -3,4 +3,7 @@ - file_name = "#{@project.owner.uname}-#{@project.name}-#{tag.name}" - %w(zip tar.gz).each do |type| = link_to t('layout.projects.source_code', :type => type), archive_path(@project, file_name, type), :class => 'detail-link' - %p.name~ "#{tag.name} (#{tag.commit.authored_date.strftime('%d.%m.%Y')})" + %p.name= tag.name + %p.date + = t('layout.projects.tag_created') + = tag.commit.authored_date.strftime('%d.%m.%Y') diff --git a/config/locales/models/project.en.yml b/config/locales/models/project.en.yml index 58aa0dd1a..55cac2efd 100644 --- a/config/locales/models/project.en.yml +++ b/config/locales/models/project.en.yml @@ -2,6 +2,7 @@ en: layout: projects: branches: Branches + tag_created: Created showing_branches: Showing %{count} branches showing_branch: Showing 1 branch no_branches: No branches diff --git a/config/locales/models/project.ru.yml b/config/locales/models/project.ru.yml index 1e7b20ec9..0841e86bb 100644 --- a/config/locales/models/project.ru.yml +++ b/config/locales/models/project.ru.yml @@ -2,6 +2,7 @@ ru: layout: projects: branches: Ветки + tag_created: Создан showing_branches: Показано %{count} веток showing_branch: Показана 1 ветка no_branch: Нет веток