#907: small refactoring of UI
This commit is contained in:
parent
2bcd874169
commit
7fc8e33993
|
@ -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
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,6 +2,7 @@ ru:
|
|||
layout:
|
||||
projects:
|
||||
branches: Ветки
|
||||
tag_created: Создан
|
||||
showing_branches: Показано %{count} веток
|
||||
showing_branch: Показана 1 ветка
|
||||
no_branch: Нет веток
|
||||
|
|
Loading…
Reference in New Issue