Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
3922d6c2
Commit
3922d6c2
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move (Un)subscribe button below subscription status
parent
6aa43974
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
app/views/shared/issuable/_context.html.haml
app/views/shared/issuable/_context.html.haml
+4
-5
No files found.
app/views/shared/issuable/_context.html.haml
View file @
3922d6c2
...
...
@@ -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
)
}
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment