Commit 213e117a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed ability and modify UI a bit

parent bcc4e4dc
......@@ -68,7 +68,7 @@ class Ability
def project_report_rules
project_guest_rules + [
:download_code,
:fork_project
:fork_project,
:write_project_snippet
]
end
......
......@@ -18,6 +18,9 @@
%li
= link_to public_root_path, title: "Public area", class: 'has_bottom_tooltip', 'data-original-title' => 'Public area' do
%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?
%li
= link_to admin_root_path, title: "Admin area", class: 'has_bottom_tooltip', 'data-original-title' => 'Admin area' do
......
......@@ -4,11 +4,12 @@
%body{class: "#{app_theme} application"}
= render "layouts/head_panel", title: "Snippets"
= render "layouts/flash"
%nav.main-nav
.container
%ul.main_menu
%ul
= nav_link(path: 'dashboard#show', html_options: {class: 'home'}) do
= link_to root_path, title: "Back to dashboard" do
%i.icon-arrow-left
%i.icon-home
= nav_link(path: 'snippet#new') do
= link_to new_snippet_path do
New snippet
......@@ -18,5 +19,5 @@
= nav_link(path: 'snippets#index') do
= link_to snippets_path do
Discover snippets
.container
.content= yield
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment