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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
f7ed469e
Commit
f7ed469e
authored
Oct 15, 2015
by
Han Loong Liauw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change capitalisation in buttons
parent
1f92c22f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
app/views/projects/snippets/_actions.html.haml
app/views/projects/snippets/_actions.html.haml
+4
-2
app/views/projects/snippets/show.html.haml
app/views/projects/snippets/show.html.haml
+1
-1
app/views/snippets/_actions.html.haml
app/views/snippets/_actions.html.haml
+5
-2
app/views/snippets/show.html.haml
app/views/snippets/show.html.haml
+1
-1
No files found.
app/views/projects/snippets/_actions.html.haml
View file @
f7ed469e
=
link_to
new_namespace_project_snippet_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-grouped new-snippet-link'
,
title:
"New Snippet"
do
=
icon
(
'plus'
)
new s
nippet
New S
nippet
-
if
can?
(
current_user
,
:admin_project_snippet
,
@snippet
)
=
link_to
"remove"
,
namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-remove"
,
title:
'Delete Snippet'
=
link_to
namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-remove"
,
title:
'Delete Snippet'
do
=
icon
(
'trash-o'
)
Delete
-
if
can?
(
current_user
,
:update_project_snippet
,
@snippet
)
=
link_to
edit_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-grouped snippable-edit"
do
=
icon
(
'pencil-square-o'
)
...
...
app/views/projects/snippets/show.html.haml
View file @
f7ed469e
...
...
@@ -9,6 +9,6 @@
=
@snippet
.
file_name
.file-actions
.btn-group
=
link_to
"raw"
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
link_to
'Raw'
,
raw_namespace_project_snippet_path
(
@project
.
namespace
,
@project
,
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
%div
#notes
=
render
"projects/notes/notes_with_form"
app/views/snippets/_actions.html.haml
View file @
f7ed469e
=
link_to
new_snippet_path
,
class:
'btn btn-grouped new-snippet-link'
,
title:
"New Snippet"
do
=
icon
(
'plus'
)
new snippet
=
link_to
"remove"
,
snippet_path
(
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-remove"
,
title:
'Delete Snippet'
New Snippet
-
if
can?
(
current_user
,
:admin_personal_snippet
,
@snippet
)
=
link_to
snippet_path
(
@snippet
),
method: :delete
,
data:
{
confirm:
"Are you sure?"
},
class:
"btn btn-grouped btn-remove"
,
title:
'Delete Snippet'
do
=
icon
(
'trash-o'
)
Delete
-
if
can?
(
current_user
,
:update_personal_snippet
,
@snippet
)
=
link_to
edit_snippet_path
(
@snippet
),
class:
"btn btn-grouped snippable-edit"
do
=
icon
(
'pencil-square-o'
)
...
...
app/views/snippets/show.html.haml
View file @
f7ed469e
...
...
@@ -8,5 +8,5 @@
=
@snippet
.
file_name
.file-actions
.btn-group
=
link_to
"raw"
,
raw_snippet_path
(
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
link_to
'Raw'
,
raw_snippet_path
(
@snippet
),
class:
"btn btn-sm"
,
target:
"_blank"
=
render
'shared/snippets/blob'
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