summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-18 22:15:45 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-18 22:15:45 +0200
commit15c46555274a14f3a90f0c8139e59cf1e96eccfc (patch)
treeae5dec884629e8a75335d1dffe7da913ff09fe0d /app/views/projects
parent3b5a4fa2fd5cdc72865b7dfde20b1ea8741dd6cc (diff)
downloadgitlab-ce-15c46555274a14f3a90f0c8139e59cf1e96eccfc.tar.gz
UI: add new button, top panel restyle etc
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/_project_head.html.haml4
-rw-r--r--app/views/projects/_projects_top_menu.html.haml17
2 files changed, 2 insertions, 19 deletions
diff --git a/app/views/projects/_project_head.html.haml b/app/views/projects/_project_head.html.haml
index 6478853d77d..cbcd0660e10 100644
--- a/app/views/projects/_project_head.html.haml
+++ b/app/views/projects/_project_head.html.haml
@@ -18,10 +18,10 @@
- if current_page?(project_snippets_path(@project))
- if can? current_user, :write_snippet, @project
= link_to new_project_snippet_path(@project), :class => "add_new", :title => "New Snippet" do
- = image_tag "add_new.png", :width => 14
+ Add new
- if current_page?(team_project_path(@project))
- if can? current_user, :admin_team_member, @project
= link_to new_project_team_member_path(@project), :class => "add_new", :title => "New Team Member" do
- = image_tag "add_new.png", :width => 14
+ Add New
diff --git a/app/views/projects/_projects_top_menu.html.haml b/app/views/projects/_projects_top_menu.html.haml
deleted file mode 100644
index 9e199183b15..00000000000
--- a/app/views/projects/_projects_top_menu.html.haml
+++ /dev/null
@@ -1,17 +0,0 @@
-%div.top_project_menu
- %span= link_to 'All', projects_path, :class => current_page?(projects_path) ? "current" : nil
- - if current_user.can_create_project?
- %span= link_to "New Project", new_project_path, :class => current_page?(:controller => "projects", :action => "new") ? "current" : nil
- %span.right
- = link_to_function(image_tag("list_view_icon.jpg"), "switchProjectView()", :style => "border:none;box-shadow:none;")
-
-:javascript
- function switchProjectView(){
- $(".tile").toggle();
- $(".list").toggle();
- if($(".tile").is(":visible")){
- $.cookie('project_view', 'tile', { expires: 14 });
- } else {
- $.cookie('project_view', 'list', { expires: 14 });
- }
- }