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
Kazuhiko Shiozaki
gitlab-ce
Commits
a60853fd
Commit
a60853fd
authored
Oct 14, 2015
by
Han Loong Liauw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include created_at date in heading
parent
e1d70c4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+9
-3
No files found.
app/views/snippets/show.html.haml
View file @
a60853fd
...
@@ -7,15 +7,21 @@
...
@@ -7,15 +7,21 @@
.snippet-box.snippet-box-locked
.snippet-box.snippet-box-locked
%i
.fa.fa-lock
%i
.fa.fa-lock
Private
Private
%span
.snippet-id
Snippet ##{@snippet.id}
%span
.creator
%span
.creator
upd
ated by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
cre
ated by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
·
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
=
time_ago_with_tooltip
(
@snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet_updated_ago'
)
-
if
@snippet
.
updated_at
!=
@snippet
.
created_at
%span
·
=
icon
(
'edit'
,
title:
'edited'
)
=
time_ago_with_tooltip
(
@snippet
.
updated_at
,
placement:
'bottom'
,
html_class:
'snippet_edited_ago'
)
.pull-right
.pull-right
=
link_to
new_snippet_path
,
class:
'btn btn-grouped new-snippet-link'
,
title:
"New Snippet"
do
=
link_to
new_snippet_path
,
class:
'btn btn-grouped new-snippet-link'
,
title:
"New Snippet"
do
=
icon
(
'plus'
)
=
icon
(
'plus'
)
Add
new snippet
new snippet
=
link_to
"remove"
,
snippet_path
(
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-remove"
,
title:
'Delete Snippet'
=
link_to
"remove"
,
snippet_path
(
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-remove"
,
title:
'Delete Snippet'
-
if
can?
(
current_user
,
:update_personal_snippet
,
@snippet
)
-
if
can?
(
current_user
,
:update_personal_snippet
,
@snippet
)
=
link_to
edit_snippet_path
(
@snippet
),
class:
"btn btn-grouped issuabled-edit"
do
=
link_to
edit_snippet_path
(
@snippet
),
class:
"btn btn-grouped issuabled-edit"
do
...
...
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