Commit 3b0acc9eea5c8e74db9bcb7b46c018ff6ede7e6c

Authored by Dmitriy Zaporozhets
2 parents 4efaa51b 5cb85258

Merge branch 'bug/archive_label_overflow' of /home/git/repositories/gitlab/gitlabhq

app/views/projects/_home_panel.html.haml
... ... @@ -7,10 +7,6 @@
7 7 %span.visibility-level-label
8 8 = visibility_level_icon(@project.visibility_level)
9 9 = visibility_level_label(@project.visibility_level)
10   - - if @project.archived?
11   - %span.visibility-level-label
12   - %i.icon-book
13   - Archived
14 10  
15 11 .span7
16 12 - unless empty_repo
... ... @@ -32,4 +28,4 @@
32 28 = link_to pluralize(@repository.round_commit_count, 'commit'), project_commits_path(@project, @ref || @repository.root_ref)
33 29 = link_to pluralize(@repository.branch_names.count, 'branch'), project_branches_path(@project)
34 30 = link_to pluralize(@repository.tag_names.count, 'tag'), project_tags_path(@project)
35   - %span.light.prepend-left-20= repository_size
36 31 \ No newline at end of file
  32 + %span.light.prepend-left-20= repository_size
... ...
app/views/projects/show.html.haml
... ... @@ -8,6 +8,14 @@
8 8 .loading.hide
9 9 .span3.project-side
10 10 .clearfix
  11 + - if @project.archived?
  12 + .alert
  13 + %h5
  14 + %i.icon-warning-sign
  15 + Archived project!
  16 + %p Repository is read-only
  17 +
  18 +
11 19 - if @project.forked_from_project
12 20 .alert.alert-success
13 21 %i.icon-code-fork.project-fork-icon
... ...