Skip to content

Commit

Permalink
Merge pull request #77 from psychobunny/master
Browse files Browse the repository at this point in the history
add "topic deleted" notice in thread view
  • Loading branch information
pichalite committed Feb 5, 2018
2 parents 6427d16 + 0c2f3de commit 98e963f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
*.sublime*
5 changes: 5 additions & 0 deletions less/topic.less
Expand Up @@ -55,6 +55,11 @@
.alert-warning {
background-color: @material-warning;
}

[component="topic/deleted/message"] {
margin-top: 10px;
padding: 12px 20px;
}
}

.lv-item.media.deleted, .timeline.single.deleted .timeline-content {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "nodebb-theme-material",
"version": "2.11.8",
"version": "2.11.9",
"nbbpm": {
"compatibility": "^1.7.0"
},
Expand Down
12 changes: 12 additions & 0 deletions templates/topic.tpl
Expand Up @@ -10,6 +10,18 @@
</ul>
</div>
</div>

<div component="topic/deleted/message" class="lv-header-alt <!-- IF !deleted --> hidden<!-- ENDIF !deleted --> clearfix">
<span class="pull-left">[[topic:deleted_message]]</span>
<span class="pull-right">
<!-- IF deleter -->
<a href="{config.relative_path}/user/{deleter.userslug}">
<strong>{deleter.username}</strong>
</a>
<small class="timeago" title="{deletedTimestampISO}"></small>
<!-- ENDIF deleter -->
</span>
</div>

<div class="lv-body">
<div component="topic" data-tid="{tid}" data-cid="{cid}">
Expand Down

0 comments on commit 98e963f

Please sign in to comment.