Commit d155b3e7 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq

parents d819b9d4 1eaa8e18
...@@ -50,7 +50,7 @@ class Dispatcher ...@@ -50,7 +50,7 @@ class Dispatcher
new TreeView() new TreeView()
when 'projects:blob:show' when 'projects:blob:show'
new BlobView() new BlobView()
when 'projects:labels:new' when 'projects:labels:new', 'projects:labels:edit'
new Labels() new Labels()
switch path.first() switch path.first()
......
...@@ -89,6 +89,10 @@ ...@@ -89,6 +89,10 @@
} }
} }
.project-description {
overflow: hidden;
}
.project-access-icon { .project-access-icon {
margin-left: 10px; margin-left: 10px;
float: left; float: left;
......
...@@ -192,6 +192,7 @@ ul.nav.nav-projects-tabs { ...@@ -192,6 +192,7 @@ ul.nav.nav-projects-tabs {
background-image: none; background-image: none;
.btn, &.btn { .btn, &.btn {
white-space: normal;
text-align: left; text-align: left;
padding: 10px 15px; padding: 10px 15px;
background-color: #F1f1f1; background-color: #F1f1f1;
......
%li %li
%h4.project-title .project-access-icon
.project-access-icon = visibility_level_icon(project.visibility_level)
= visibility_level_icon(project.visibility_level)
= link_to project.name_with_namespace, project
- if current_page?(starred_explore_projects_path) .project-description
%strong.pull-right %h4.project-title
= pluralize project.star_count, 'star' = link_to project.name_with_namespace, project
- if project.description.present? - if current_page?(starred_explore_projects_path)
%p.project-description.str-truncated %strong.pull-right
= project.description = pluralize project.star_count, 'star'
.repo-info - if project.description.present?
- unless project.empty_repo? %p.project-description.str-truncated
= link_to pluralize(project.repository.round_commit_count, 'commit'), project_commits_path(project, project.default_branch) = project.description
·
= link_to pluralize(project.repository.branch_names.count, 'branch'), project_branches_path(project)
·
= link_to pluralize(project.repository.tag_names.count, 'tag'), project_tags_path(project)
- else
%i.icon-warning-sign
Empty repository
.repo-info
- unless project.empty_repo?
= link_to pluralize(project.repository.round_commit_count, 'commit'), project_commits_path(project, project.default_branch)
·
= link_to pluralize(project.repository.branch_names.count, 'branch'), project_branches_path(project)
·
= link_to pluralize(project.repository.tag_names.count, 'tag'), project_tags_path(project)
- else
%i.icon-warning-sign
Empty repository
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment