This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comments layout and style refactored
- Loading branch information
Showing
5 changed files
with
58 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,8 @@ h1 { | |
font-family: $font-family-sans-serif; | ||
} | ||
} | ||
|
||
.space-xs-sides { | ||
margin-left: .6em; | ||
margin-right: .6em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
.row id="comment_#{comment.id}" | ||
.col-md-1.comment-thumbnail | ||
.pull-right | ||
.user-image | ||
= user_image_tag(comment.author.email) | ||
.col-md-11 | ||
.panel.panel-default | ||
.panel-heading | ||
h5 | ||
strong | ||
.comment-row id="comment_#{comment.id}" | ||
.comment-thumbnail | ||
.user-image | ||
= user_image_tag(comment.author.email) | ||
.comment-content | ||
.row | ||
.col-xs-8 | ||
p | ||
strong.text-primary | ||
= comment.author.username | ||
' commented | ||
= activity_time_tag comment.updated_at | ||
' ago | ||
.pull-right | ||
button.btn.btn-link.btn-x.btn-edit-role.destroy_comments_btn[ | ||
data-placement="left" | ||
data-toggle="popover" | ||
data-title="Please confirm" | ||
data-content='<p>Are you sure you want to remove this \ | ||
comment?</p><a class="btn btn-default">No</a> <a class="btn \ | ||
btn-primary" data-method="delete" rel="nofollow" \ | ||
data-remote="true" href="#{url_for([comment.repository, comment])}">Yes</a>' | ||
data-html="true" | ||
role="button"] | ||
if.fa.fa-trash | ||
| Delete comment | ||
.panel-body | ||
= markdown(comment.body) | ||
span.text-muted.space-xs-sides | ||
= activity_time_tag comment.updated_at | ||
' ago | ||
.col-xs-4.text-right | ||
button.btn.btn-link.btn-xs.btn-edit-role.destroy_comments_btn[ | ||
data-placement="left" | ||
data-toggle="popover" | ||
data-title="Please confirm" | ||
data-content="<p>Are you sure you want to remove this \ | ||
comment?</p><a class='btn btn-default'>No</a> <a class='btn \ | ||
btn-primary' data-method='delete' rel='nofollow' \ | ||
data-remote='true' href='#{url_for([comment.repository, comment])}'>Yes</a>" | ||
data-html="true" | ||
role="button"] | ||
if.fa.fa-trash | ||
| Delete comment | ||
|
||
= markdown(comment.body) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters