mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-23 11:36:09 +10:00
Move (Un)subscribe button below subscription status
This commit is contained in:
@@ -41,17 +41,16 @@
|
||||
- subscribed = issuable.subscribed?(current_user)
|
||||
%div.prepend-top-20.clearfix
|
||||
.issuable-context-title
|
||||
%label
|
||||
Subscription:
|
||||
%button.btn.btn-block.subscribe-button{:type => 'button'}
|
||||
= icon('eye')
|
||||
%span= subscribed ? 'Unsubscribe' : 'Subscribe'
|
||||
%label Subscription
|
||||
- subscribtion_status = subscribed ? 'subscribed' : 'unsubscribed'
|
||||
.subscription-status{data: {status: subscribtion_status}}
|
||||
.description-block.unsubscribed{class: ( 'hidden' if subscribed )}
|
||||
You're not receiving notifications from this thread.
|
||||
.description-block.subscribed{class: ( 'hidden' unless subscribed )}
|
||||
You're receiving notifications because you're subscribed to this thread.
|
||||
%button.btn.btn-block.subscribe-button{:type => 'button'}
|
||||
= icon('eye')
|
||||
%span= subscribed ? 'Unsubscribe' : 'Subscribe'
|
||||
|
||||
:javascript
|
||||
new Subscription("#{toggle_subscription_path(issuable)}");
|
||||
|
||||
Reference in New Issue
Block a user