diff --git a/app/assets/images/Arrow-Left-UI.PNG b/app/assets/images/Arrow-Left-UI.PNG new file mode 100644 index 0000000000000000000000000000000000000000..80a34b411f1ddc9ec58f0a6a3ef1e16950125eb9 Binary files /dev/null and b/app/assets/images/Arrow-Left-UI.PNG differ diff --git a/app/assets/images/Gear-UI.PNG b/app/assets/images/Gear-UI.PNG index c1d84e06da6f50f656780aaa2750950fcf0cf1f0..7720f0eb21a3688ff8341a2e9d5d691b624c7566 100644 Binary files a/app/assets/images/Gear-UI.PNG and b/app/assets/images/Gear-UI.PNG differ diff --git a/app/assets/images/Home-UI.PNG b/app/assets/images/Home-UI.PNG index f57f8d09c8643a3b21d35932cf8c5f2f90786d71..f739af3c2acba143a008f5a007a29846d91afde9 100644 Binary files a/app/assets/images/Home-UI.PNG and b/app/assets/images/Home-UI.PNG differ diff --git a/app/assets/images/Info-UI.PNG b/app/assets/images/Info-UI.PNG new file mode 100644 index 0000000000000000000000000000000000000000..92795486913988cb56cc2596769ac6c397d0bd1d Binary files /dev/null and b/app/assets/images/Info-UI.PNG differ diff --git a/app/assets/images/Rss-UI.PNG b/app/assets/images/Rss-UI.PNG new file mode 100644 index 0000000000000000000000000000000000000000..2116571ebbc705820beed79c20e6232ceebc6b11 Binary files /dev/null and b/app/assets/images/Rss-UI.PNG differ diff --git a/app/assets/images/add_new.png b/app/assets/images/add_new.png index 12fa22c88c99e47fd38091667bac6277ad13a6cd..bf2fbec29649463a42d9b85fb449e9b369d79a6e 100644 Binary files a/app/assets/images/add_new.png and b/app/assets/images/add_new.png differ diff --git a/app/assets/images/rss_icon_gray.png b/app/assets/images/rss_icon_gray.png deleted file mode 100644 index 90e509aa4bd1feadf19b1603495b9f8dd1e5bbca..0000000000000000000000000000000000000000 Binary files a/app/assets/images/rss_icon_gray.png and /dev/null differ diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index d6aaec73e6e863a4ee512da18e524539bdd9a80f..eae9383a02e71d0f6d8a85ad232f87e6015e3fac 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -556,8 +556,13 @@ a.project-update.titled { } .add_new { - float:right; - padding: 6px 12px; + float: right; + background: #A6B807; + color: white; + padding: 4px 10px; + @include round-borders-all(4px); + font-size:11px; + margin: 10px 0; } diff --git a/app/assets/stylesheets/style.scss b/app/assets/stylesheets/style.scss index 01ef6c345d031a91bf18643e62f8ba8f1d595b2c..a360b21aea48dd98d0865be2e94629aef36f09ea 100644 --- a/app/assets/stylesheets/style.scss +++ b/app/assets/stylesheets/style.scss @@ -125,7 +125,7 @@ table thead th{ td, th{ padding: .9em 1em; vertical-align: middle; } table thead .image{width:100px} -table tr:hover, .listed_items tr.odd:hover{background-color:#FFFFCF} +.listed_items tr.odd:hover{background-color:#FFFFCF} /* eo Tables */ /* Buttons */ diff --git a/app/assets/stylesheets/top_panel.scss b/app/assets/stylesheets/top_panel.scss index 98f5ab4c454e3aaee4ce321e39949bdb4cea33cc..2490aa9226ac9388ea67a151c869a1cf31d9aa59 100644 --- a/app/assets/stylesheets/top_panel.scss +++ b/app/assets/stylesheets/top_panel.scss @@ -1,18 +1,18 @@ .main_links { - width:124px; + width:90px; + margin-right:40px; float:left; + background:#ddd; + @include round-borders-all(8px); + border-color:#ccc; + a { position: relative; float:left; - padding: 4px; - - &.home { - margin-right:15px; - width: 26px; - } + padding: 3px 10px; - &.admin { - width: 21px; + img { + width: 22px; } } } @@ -147,8 +147,9 @@ body header { .rss-icon { margin:0 15px; - padding:5px; + padding:3px; border:1px solid #ccc; border-radius:3px; float:left; + background:#DDD; } diff --git a/app/assets/stylesheets/tree.scss b/app/assets/stylesheets/tree.scss index 42eb060f8fdbedecbf175abecce3053ed95e71ba..5707087168034ddfb9689f66132bb7ae580007b0 100644 --- a/app/assets/stylesheets/tree.scss +++ b/app/assets/stylesheets/tree.scss @@ -113,3 +113,9 @@ table.highlighttable .linenodiv pre { padding-right: 4px; color:#888; } + +.tree-item { + &:hover { + background: #FFFFCF; + } +} diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..b22280d2fd202e9edd25bb6c1382e0b49d3b631d --- /dev/null +++ b/app/controllers/help_controller.rb @@ -0,0 +1,4 @@ +class HelpController < ApplicationController + def index + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0e4ad533ad72a23d7c96b2cfc0663df7dbd506f5..9f0f1e68954a50128605044ecbc768085a3d4a77 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -89,4 +89,8 @@ module ApplicationHelper def profile_layout controller.controller_name == "dashboard" || current_page?(projects_path) || controller.controller_name == "profile" || controller.controller_name == "keys" end + + def help_layout + controller.controller_name == "help" + end end diff --git a/app/views/commits/index.html.haml b/app/views/commits/index.html.haml index 0c93f163787b58b3bcc1ef5c71d7060fd1684494..5a760b3a2dc2011f7f44aac703b713751e1f2295 100644 --- a/app/views/commits/index.html.haml +++ b/app/views/commits/index.html.haml @@ -3,7 +3,7 @@ = content_for :rss_icon do .rss-icon = link_to project_commits_path(@project, :atom, { :private_token => current_user.private_token, :ref => @ref }) do - = image_tag "rss_icon_gray.png", :width => 16, :title => "feed" + = image_tag "Rss-UI.PNG", :width => 22, :title => "feed" - if params[:path] %h2 diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/app/views/issues/_head.html.haml b/app/views/issues/_head.html.haml new file mode 100644 index 0000000000000000000000000000000000000000..7d44b87564fb87f386e5dabb5633692dfdbfdb43 --- /dev/null +++ b/app/views/issues/_head.html.haml @@ -0,0 +1,14 @@ +.top-tabs + = link_to project_issues_path(@project), :class => "tab #{'active' if current_page?(project_issues_path(@project)) }" do + %span + Issues + + -#= link_to project_issues_path(@project), :class => "tab" do + %span + Milestones + + - if current_page?(project_issues_path(@project)) + - if can? current_user, :write_issue, @project + = link_to new_project_issue_path(@project), :class => "add_new", :title => "New Issue", :remote => true do + Add new + diff --git a/app/views/issues/index.html.haml b/app/views/issues/index.html.haml index 4d9109aac19d89c2c3ec597ec65996800c83c229..d55e07f1adbea14804d721158c4a8834141e8f54 100644 --- a/app/views/issues/index.html.haml +++ b/app/views/issues/index.html.haml @@ -1,23 +1,9 @@ -.top-tabs - = link_to project_issues_path(@project), :class => "tab #{'active' if current_page?(project_issues_path(@project)) }" do - %span - Issues - - -#= link_to project_issues_path(@project), :class => "tab" do - %span - Milestones - - - if current_page?(project_issues_path(@project)) - - if can? current_user, :write_issue, @project - = link_to new_project_issue_path(@project), :class => "add_new", :title => "New Issue", :remote => true do - = image_tag "add_new.png", :width => 14 - - += render "issues/head" - if current_user.private_token = content_for :rss_icon do .rss-icon = link_to project_issues_path(@project, :atom, { :private_token => current_user.private_token }) do - = image_tag "rss_icon_gray.png", :width => 16, :title => "feed" + = image_tag "Rss-UI.PNG", :width => 22, :title => "feed" %div#issues-table-holder .top_panel_issues diff --git a/app/views/layouts/_head_panel.html.haml b/app/views/layouts/_head_panel.html.haml index ac90dec00a14a4c7ffcd6342b88874a48fa2cd20..101b411072fc1c8717a6e00233f155bdb3c2271d 100644 --- a/app/views/layouts/_head_panel.html.haml +++ b/app/views/layouts/_head_panel.html.haml @@ -4,10 +4,9 @@ .top_panel_content %div.main_links = link_to root_path, :class => "home", :title => "Home" do - = image_tag "Home-UI.PNG", :width => 26 - - if current_user.is_admin? - = link_to admin_root_path, :class => "admin", :title => "Admin" do - = image_tag "Gear-UI.PNG", :width => 20 + = image_tag "Home-UI.PNG" + = link_to :back, :title => "Back" do + = image_tag "Arrow-Left-UI.PNG" - if project_layout .project_name @@ -19,12 +18,16 @@ = render :partial => "projects/refs", :locals => { :destination => controller.controller_name == "commits" ? "commits" : "tree" } = yield :rss_icon - - elsif profile_layout + - else .dashboard_links = link_to "Activities", dashboard_path, :class => "#{"active" if current_page?(dashboard_path) || current_page?(root_path) }" -#= link_to "Projects", projects_path, :class => "#{"active" if current_page?(projects_path)}" = link_to "Issues", dashboard_issues_path, :class => "#{"active" if current_page?(dashboard_issues_path)}", :id => "issues_slide" - = link_to "Merge Requests", dashboard_merge_requests_path, :class => "#{"active" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide" + = link_to "Requests", dashboard_merge_requests_path, :class => "#{"active" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide" + - if current_user.is_admin? + = link_to admin_root_path, :class => "admin", :title => "Admin" do + Admin + = link_to "Help", help_path, :class => "#{"active" if controller.controller_name == "help"}" .search = text_field_tag "search", nil, :placeholder => "Search", :class => "search-input" diff --git a/app/views/merge_requests/_head.html.haml b/app/views/merge_requests/_head.html.haml new file mode 100644 index 0000000000000000000000000000000000000000..bbf54da27253d90719baa8ad6b12d1c01d618c43 --- /dev/null +++ b/app/views/merge_requests/_head.html.haml @@ -0,0 +1,12 @@ +.top-tabs + = link_to project_merge_requests_path(@project), :class => "tab #{'active' if current_page?(project_merge_requests_path(@project)) }" do + %span + Merge Requests + + + - if current_page?(project_merge_requests_path(@project)) + - if can? current_user, :write_merge_request, @project + = link_to new_project_merge_request_path(@project), :class => "add_new", :title => "New Merge request", :remote => true do + Add new + + diff --git a/app/views/merge_requests/index.html.haml b/app/views/merge_requests/index.html.haml index edc223ba684575eb3b956a43edff7423f5f708a3..dc8ddf07511924015c6a078a9876f0df52c34019 100644 --- a/app/views/merge_requests/index.html.haml +++ b/app/views/merge_requests/index.html.haml @@ -1,7 +1,5 @@ -%h2.icon - %span> - Merge Requests -.right= link_to 'New Merge request', new_project_merge_request_path(@project), :class => "grey-button" += render "merge_requests/head" + - if @merge_requests.opened.count > 0 %div{ :class => "update-data ui-box ui-box-small ui-box-big" } %h3 @@ -21,3 +19,9 @@ .clear %br +- unless @merge_requests.count > 0 + .notice_holder + %li Merge Requests do not exist yet. + - if can? current_user, :write_merge_request, @project + %li You can add a new one by clicking on "Add New" button + diff --git a/app/views/projects/_project_head.html.haml b/app/views/projects/_project_head.html.haml index 6478853d77dd2b13bda4c27c1166c5f6e4aabbe1..cbcd0660e109287f542f8e7fb9434ac5d9b53c13 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 9e199183b15ac3539ed7e4d2e8e63c7cc9aa8b17..0000000000000000000000000000000000000000 --- 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 }); - } - } diff --git a/app/views/repositories/_head.html.haml b/app/views/repositories/_head.html.haml index 7b476362bedbd067677eb981c2da6e5ca3d2d119..0095098e8941c21fe0a6b69febdb1ce071234ae8 100644 --- a/app/views/repositories/_head.html.haml +++ b/app/views/repositories/_head.html.haml @@ -19,10 +19,10 @@ - if current_page?(project_hooks_path(@project)) - if can? current_user, :admin_project, @project = link_to new_project_hook_path(@project), :class => "add_new", :title => "New Web Hook" do - = image_tag "add_new.png", :width => 14 + Add new - if current_page?(project_deploy_keys_path(@project)) - if can? current_user, :admin_project, @project = link_to new_project_deploy_key_path(@project), :class => "add_new", :title => "New Deploy Key" do - = image_tag "add_new.png", :width => 14 + Add new diff --git a/app/views/snippets/index.html.haml b/app/views/snippets/index.html.haml index c7c4c6b132452bd6e8739fe4cf312c92a21fdce6..1021dd1f5979c64e8867651a7be6198bd8643a1b 100644 --- a/app/views/snippets/index.html.haml +++ b/app/views/snippets/index.html.haml @@ -8,5 +8,5 @@ .notice_holder %li Snippets do not exist yet. - if can? current_user, :write_snippet, @project - %li You can add a new one by clicking on plus icon + %li You can add a new one by clicking on "Add New" button diff --git a/app/views/team_members/_form.html.haml b/app/views/team_members/_form.html.haml index e3ba64c5fada0129ff58b013dcec53d0ca0e52f5..2a299fd0ba3241232f92619895b2e2d998a9bb1a 100644 --- a/app/views/team_members/_form.html.haml +++ b/app/views/team_members/_form.html.haml @@ -6,11 +6,11 @@ .entity-button Team List %i - %h2= "New Team member" + %h3= "New Team member" %hr -if @team_member.errors.any? - %ul + %ul.errors_holder - @team_member.errors.full_messages.each do |msg| %li= msg diff --git a/app/views/team_members/new.html.haml b/app/views/team_members/new.html.haml index 4f70fb4b0461ddad82462635f172fb383efc872b..40eb4cebf08d0d87ecd03a8954fefbba2fa8c846 100644 --- a/app/views/team_members/new.html.haml +++ b/app/views/team_members/new.html.haml @@ -1 +1,2 @@ += render "projects/project_head" = render "team_members/form" diff --git a/config/routes.rb b/config/routes.rb index 3a4018d5cffaf07c837d1a32291c596efac51164..4f0e6fcbeaee8379efccf6ae204b0c364d3c7f4b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -6,6 +6,7 @@ Gitlab::Application.routes.draw do get 'tags'=> 'tags#index' get 'tags/:tag' => 'projects#index' + get 'help' => 'help#index' namespace :admin do resources :users