#907: small refactoring of UI

This commit is contained in:
Vokhmin Alexey V 2013-02-13 23:29:08 +04:00
parent 2bcd874169
commit 7fc8e33993
4 changed files with 7 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class Projects::Git::TreesController < Projects::Git::BaseController
end end
def tags 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' render 'refs'
end end

View File

@ -3,4 +3,7 @@
- file_name = "#{@project.owner.uname}-#{@project.name}-#{tag.name}" - file_name = "#{@project.owner.uname}-#{@project.name}-#{tag.name}"
- %w(zip tar.gz).each do |type| - %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' = 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')

View File

@ -2,6 +2,7 @@ en:
layout: layout:
projects: projects:
branches: Branches branches: Branches
tag_created: Created
showing_branches: Showing %{count} branches showing_branches: Showing %{count} branches
showing_branch: Showing 1 branch showing_branch: Showing 1 branch
no_branches: No branches no_branches: No branches

View File

@ -2,6 +2,7 @@ ru:
layout: layout:
projects: projects:
branches: Ветки branches: Ветки
tag_created: Создан
showing_branches: Показано %{count} веток showing_branches: Показано %{count} веток
showing_branch: Показана 1 ветка showing_branch: Показана 1 ветка
no_branch: Нет веток no_branch: Нет веток