Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Ãwhen no comments are found, give a padding to the text
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntss committed Jun 13, 2016
1 parent ccf51a2 commit fcfd6d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/comments.scss
Expand Up @@ -37,3 +37,8 @@
}
}

.no-comments-found {
padding: 0 1em;
text-align: center;
}

3 changes: 2 additions & 1 deletion app/views/repositories/show.html.slim
Expand Up @@ -175,7 +175,8 @@
#comments.panel-body.panel-no-side-padding
.container-full
- if @repository_comments.empty?
' Nobody has left a comment yet.
.no-comments-found
' Nobody has left a comment yet.
- else
- @repository_comments.each do |comment|
= render(comment)

0 comments on commit fcfd6d3

Please sign in to comment.