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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5413960b
Commit
5413960b
authored
Dec 15, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix headers of milestone and snippet show pages
parent
4493d3fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
12 deletions
+16
-12
app/views/dashboard/milestones/show.html.haml
app/views/dashboard/milestones/show.html.haml
+4
-3
app/views/groups/milestones/show.html.haml
app/views/groups/milestones/show.html.haml
+4
-3
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+4
-3
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+4
-3
No files found.
app/views/dashboard/milestones/show.html.haml
View file @
5413960b
...
@@ -2,15 +2,16 @@
...
@@ -2,15 +2,16 @@
-
header_title
"Milestones"
,
dashboard_milestones_path
-
header_title
"Milestones"
,
dashboard_milestones_path
.issuable-details
.issuable-details
.
pag
e-title
.
issuabl
e-title
.issue-box
{
class:
"issue-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
.issue-box
{
class:
"issue-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
Closed
Closed
-
else
-
else
Open
Open
Milestone
#{
@milestone
.
title
}
%span
.issuable-id
Milestone
#{
@milestone
.
title
}
.gray-content-block.
middle
-block
.gray-content-block.
second
-block
%h2
.issue-title
%h2
.issue-title
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
...
...
app/views/groups/milestones/show.html.haml
View file @
5413960b
...
@@ -2,13 +2,14 @@
...
@@ -2,13 +2,14 @@
=
render
"header_title"
=
render
"header_title"
.issuable-details
.issuable-details
.
pag
e-title
.
issuabl
e-title
.issue-box
{
class:
"issue-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
.issue-box
{
class:
"issue-box-#{@milestone.closed? ? 'closed' : 'open'}"
}
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
Closed
Closed
-
else
-
else
Open
Open
Milestone
#{
@milestone
.
title
}
%span
.issuable-id
Milestone
#{
@milestone
.
title
}
.pull-right
.pull-right
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
@milestone
.
active?
-
if
@milestone
.
active?
...
@@ -16,7 +17,7 @@
...
@@ -16,7 +17,7 @@
-
else
-
else
=
link_to
'Reopen Milestone'
,
group_milestone_path
(
@group
,
@milestone
.
safe_title
,
title:
@milestone
.
title
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-grouped btn-reopen"
=
link_to
'Reopen Milestone'
,
group_milestone_path
(
@group
,
@milestone
.
safe_title
,
title:
@milestone
.
title
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-grouped btn-reopen"
.gray-content-block.
middle
-block
.gray-content-block.
second
-block
%h2
.issue-title
%h2
.issue-title
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
...
...
app/views/projects/milestones/show.html.haml
View file @
5413960b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
=
render
"header_title"
=
render
"header_title"
.issuable-details
.issuable-details
.
pag
e-title
.
issuabl
e-title
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
Closed
Closed
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
Expired
Expired
-
else
-
else
Open
Open
Milestone ##{@milestone.iid}
%span
.issuable-id
Milestone ##{@milestone.iid}
-
if
@milestone
.
expires_at
-
if
@milestone
.
expires_at
%span
.creator
%span
.creator
·
·
...
@@ -30,7 +31,7 @@
...
@@ -30,7 +31,7 @@
%i
.fa.fa-trash-o
%i
.fa.fa-trash-o
Delete
Delete
.gray-content-block.
middle
-block
.gray-content-block.
second
-block
%h2
.issue-title
%h2
.issue-title
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@milestone
.
title
),
pipeline: :single_line
%div
%div
...
...
app/views/shared/snippets/_header.html.haml
View file @
5413960b
.issuable-details
.issuable-details
.
pag
e-title
.
issuabl
e-title
.snippet-box.has_tooltip
{
class:
visibility_level_color
(
@snippet
.
visibility_level
),
title:
snippet_visibility_level_description
(
@snippet
.
visibility_level
,
@snippet
),
data:
{
container:
'body'
}}
.snippet-box.has_tooltip
{
class:
visibility_level_color
(
@snippet
.
visibility_level
),
title:
snippet_visibility_level_description
(
@snippet
.
visibility_level
,
@snippet
),
data:
{
container:
'body'
}}
=
visibility_level_icon
(
@snippet
.
visibility_level
,
fw:
false
)
=
visibility_level_icon
(
@snippet
.
visibility_level
,
fw:
false
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
Snippet ##{@snippet.id}
%span
.issuable-id
Snippet ##{@snippet.id}
%span
.creator
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
·
...
@@ -20,6 +21,6 @@
...
@@ -20,6 +21,6 @@
-
else
-
else
=
render
"snippets/actions"
=
render
"snippets/actions"
.gray-content-block.
middle
-block
.gray-content-block.
second
-block
%h2
.issue-title
%h2
.issue-title
=
markdown
escape_once
(
@snippet
.
title
),
pipeline: :single_line
=
markdown
escape_once
(
@snippet
.
title
),
pipeline: :single_line
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