Commit 1c9351abf015ef3fc1375511cd0138d2759ca8f5
1 parent
b4708d00
Exists in
master
and in
4 other branches
Restyle branches list. Remove unneccesary styles from tree avatar
Showing
3 changed files
with
17 additions
and
12 deletions
Show diff stats
app/assets/stylesheets/sections/tree.scss
app/views/repositories/_branch.html.haml
... | ... | @@ -3,19 +3,25 @@ |
3 | 3 | %tr |
4 | 4 | %td |
5 | 5 | = link_to project_commits_path(@project, branch.name) do |
6 | + - if @project.protected_branch? branch.name | |
7 | + %i.icon-lock | |
8 | + - else | |
9 | + %i.icon-unlock | |
6 | 10 | %strong= truncate(branch.name, length: 60) |
7 | 11 | - if branch.name == @project.root_ref |
8 | 12 | %span.label default |
9 | 13 | %td |
10 | - = link_to project_commit_path(@project, commit) do | |
11 | - %code= commit.short_id | |
12 | - | |
13 | - = image_tag gravatar_icon(commit.author_email), class: "", width: 16 | |
14 | - = gfm escape_once(truncate(commit.title, length: 40)) | |
15 | - %span.update-author.right | |
14 | + = link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do | |
15 | + = commit.short_id | |
16 | + = image_tag gravatar_icon(commit.author_email), class: "avatar s16" | |
17 | + %span.light | |
18 | + = gfm escape_once(truncate(commit.title, length: 40)) | |
19 | + %span | |
16 | 20 | = time_ago_in_words(commit.committed_date) |
17 | 21 | ago |
18 | 22 | %td |
19 | 23 | - if can? current_user, :download_code, @project |
20 | - = link_to "Download", archive_project_repository_path(@project, ref: branch.name), class: "visible_link download_repo_link" | |
24 | + = link_to archive_project_repository_path(@project, ref: branch.name) do | |
25 | + %i.icon-download | |
26 | + Download | |
21 | 27 | ... | ... |
app/views/repositories/_branches_head.html.haml
... | ... | @@ -3,6 +3,8 @@ |
3 | 3 | = nav_link(path: 'repositories#show') do |
4 | 4 | = link_to 'Recent', project_repository_path(@project) |
5 | 5 | = nav_link(path: 'protected_branches#index') do |
6 | - = link_to 'Protected', project_protected_branches_path(@project) | |
6 | + = link_to project_protected_branches_path(@project) do | |
7 | + %i.icon-lock | |
8 | + Protected | |
7 | 9 | = nav_link(path: 'repositories#branches') do |
8 | 10 | = link_to 'All', branches_project_repository_path(@project) | ... | ... |