Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
add some notification permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
OngOngoing committed Nov 9, 2015
1 parent 05c65f4 commit 1d9b8db
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions ui/static/templates/notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<!--
WALL!
-->
<div class="row item-outer" ui-sref="root" ng-if="data.target_type == 4">
<div class="row item-outer" ui-sref="root" ng-if="data.target_type == 4 && data.target_id == null">
<div class="item">
<div class="col-xs-2">
<a href="#" class="thumbnail" style="width: 40px; background: red; height: 40px;"></a>
Expand All @@ -35,6 +35,23 @@
</div>
</div>

<!--
WALL!
-->
<div class="row item-outer" ui-sref="root.nfpost({id: data.target_id})" ng-if="data.target_type == 4 && data.target_id != null">
<div class="item">
<div class="col-xs-2">
<a href="#" class="thumbnail" style="width: 40px; background: red; height: 40px;"></a>
</div>
<div class="col-xs-10">
<strong>{{data.user.username}}</strong> commented "{{data.text}}"
<div class="metadata">{{data.datetime}}</div>
</div>
<div class="clearfix"></div>
</div>
</div>


<!--
EVENT!
-->
Expand All @@ -54,7 +71,7 @@
<!--
Group!
-->
<div class="row item-outer" ui-sref="root" ng-repeat-end ng-if="data.target_type == 15">
<div class="row item-outer" ui-sref="root.group.post({id: data.target_id, postid: 105})" ng-repeat-end ng-if="data.target_type == 15">
<div class="item">
<div class="col-xs-2">
<a href="#" class="thumbnail" style="width: 40px; background: red; height: 40px;"></a>
Expand Down

0 comments on commit 1d9b8db

Please sign in to comment.