Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-08-20 16:30:58 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-08-20 16:30:58 +0400
commit1eaa8e18be417c9e9b37a56aa5a3f89f4352d352 (patch)
tree55895b7e061eb38dbbf4a59ec606abbee88d7701
parent16500a2027a8db2d5bfde24772d45387ba3f560f (diff)
parent5e7f5ee8b8f29c9a21c6eac89c71cd71485519e1 (diff)
Merge pull request #7553 from Razer6/fix_project_descriptionv7.2.0.rc3
Fix project description on explore page, fixes #7458
-rw-r--r--app/assets/stylesheets/sections/dashboard.scss4
-rw-r--r--app/views/explore/projects/_project.html.haml41
2 files changed, 25 insertions, 20 deletions
diff --git a/app/assets/stylesheets/sections/dashboard.scss b/app/assets/stylesheets/sections/dashboard.scss
index 6487e0acd91..2be24e9b131 100644
--- a/app/assets/stylesheets/sections/dashboard.scss
+++ b/app/assets/stylesheets/sections/dashboard.scss
@@ -89,6 +89,10 @@
}
}
+.project-description {
+ overflow: hidden;
+}
+
.project-access-icon {
margin-left: 10px;
float: left;
diff --git a/app/views/explore/projects/_project.html.haml b/app/views/explore/projects/_project.html.haml
index a9498416c8a..0b4be2ef5cd 100644
--- a/app/views/explore/projects/_project.html.haml
+++ b/app/views/explore/projects/_project.html.haml
@@ -1,25 +1,26 @@
%li
- %h4.project-title
- .project-access-icon
- = visibility_level_icon(project.visibility_level)
- = link_to project.name_with_namespace, project
+ .project-access-icon
+ = visibility_level_icon(project.visibility_level)
- - if current_page?(starred_explore_projects_path)
- %strong.pull-right
- = pluralize project.star_count, 'star'
+ .project-description
+ %h4.project-title
+ = link_to project.name_with_namespace, project
- - if project.description.present?
- %p.project-description.str-truncated
- = project.description
+ - if current_page?(starred_explore_projects_path)
+ %strong.pull-right
+ = pluralize project.star_count, 'star'
- .repo-info
- - unless project.empty_repo?
- = link_to pluralize(project.repository.round_commit_count, 'commit'), project_commits_path(project, project.default_branch)
- &middot;
- = link_to pluralize(project.repository.branch_names.count, 'branch'), project_branches_path(project)
- &middot;
- = link_to pluralize(project.repository.tag_names.count, 'tag'), project_tags_path(project)
- - else
- %i.icon-warning-sign
- Empty repository
+ - if project.description.present?
+ %p.project-description.str-truncated
+ = project.description
+ .repo-info
+ - unless project.empty_repo?
+ = link_to pluralize(project.repository.round_commit_count, 'commit'), project_commits_path(project, project.default_branch)
+ &middot;
+ = link_to pluralize(project.repository.branch_names.count, 'branch'), project_branches_path(project)
+ &middot;
+ = link_to pluralize(project.repository.tag_names.count, 'tag'), project_tags_path(project)
+ - else
+ %i.icon-warning-sign
+ Empty repository