Add 'Remove this story' button to detail page
This adds a 'Remove this story' button next to the 'edit' and 'subscribe' buttons on the main story detail page. Previously, it was only possible to remove stories from the edit form, which was not the first place a new user would look. Change-Id: I55aa9c5b6184169890bc1e4f38ba08b3e35d676b
This commit is contained in:
parent
650701f643
commit
7e7cf34f6c
@ -51,7 +51,12 @@
|
||||
<i class="fa fa-pencil"></i>
|
||||
</a>
|
||||
<subscribe resource="story"
|
||||
resource-id="story.id"></subscribe>
|
||||
resource-id="story.id"></subscribe>
|
||||
<button type="button"
|
||||
class="btn btn-link"
|
||||
ng-click="remove()" permission="is_superuser">
|
||||
Remove this story
|
||||
</button>
|
||||
</small>
|
||||
</h1>
|
||||
<p><strong>Author:</strong>
|
||||
|
Loading…
x
Reference in New Issue
Block a user