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
213e117a
Commit
213e117a
authored
Jun 04, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ability and modify UI a bit
parent
bcc4e4dc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
15 deletions
+19
-15
app/models/ability.rb
app/models/ability.rb
+1
-1
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+3
-0
app/views/layouts/snippets.html.haml
app/views/layouts/snippets.html.haml
+15
-14
No files found.
app/models/ability.rb
View file @
213e117a
...
@@ -68,7 +68,7 @@ class Ability
...
@@ -68,7 +68,7 @@ class Ability
def
project_report_rules
def
project_report_rules
project_guest_rules
+
[
project_guest_rules
+
[
:download_code
,
:download_code
,
:fork_project
:fork_project
,
:write_project_snippet
:write_project_snippet
]
]
end
end
...
...
app/views/layouts/_head_panel.html.haml
View file @
213e117a
...
@@ -18,6 +18,9 @@
...
@@ -18,6 +18,9 @@
%li
%li
=
link_to
public_root_path
,
title:
"Public area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area'
do
=
link_to
public_root_path
,
title:
"Public area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area'
do
%i
.icon-globe
%i
.icon-globe
%li
=
link_to
snippets_path
,
title:
"Snippets area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area'
do
%i
.icon-paste
-
if
current_user
.
is_admin?
-
if
current_user
.
is_admin?
%li
%li
=
link_to
admin_root_path
,
title:
"Admin area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Admin area'
do
=
link_to
admin_root_path
,
title:
"Admin area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Admin area'
do
...
...
app/views/layouts/snippets.html.haml
View file @
213e117a
...
@@ -4,11 +4,12 @@
...
@@ -4,11 +4,12 @@
%body
{
class:
"#{app_theme} application"
}
%body
{
class:
"#{app_theme} application"
}
=
render
"layouts/head_panel"
,
title:
"Snippets"
=
render
"layouts/head_panel"
,
title:
"Snippets"
=
render
"layouts/flash"
=
render
"layouts/flash"
%nav
.main-nav
.container
.container
%ul
.main_menu
%ul
=
nav_link
(
path:
'dashboard#show'
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
'dashboard#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
root_path
,
title:
"Back to dashboard"
do
=
link_to
root_path
,
title:
"Back to dashboard"
do
%i
.icon-arrow-left
%i
.icon-home
=
nav_link
(
path:
'snippet#new'
)
do
=
nav_link
(
path:
'snippet#new'
)
do
=
link_to
new_snippet_path
do
=
link_to
new_snippet_path
do
New snippet
New snippet
...
@@ -18,5 +19,5 @@
...
@@ -18,5 +19,5 @@
=
nav_link
(
path:
'snippets#index'
)
do
=
nav_link
(
path:
'snippets#index'
)
do
=
link_to
snippets_path
do
=
link_to
snippets_path
do
Discover snippets
Discover snippets
.container
.content
=
yield
.content
=
yield
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