diff --git a/app/assets/stylesheets/projects.css.scss b/app/assets/stylesheets/projects.css.scss index 906715a183ef927eea7acdee54662329f556e759..e0659d77fa99a4555802066b4fcc756f179e665c 100644 --- a/app/assets/stylesheets/projects.css.scss +++ b/app/assets/stylesheets/projects.css.scss @@ -178,7 +178,7 @@ input.ssh_project_url { position:fixed; z-index:10001; top:0px; - width:980px; + width:100%; margin-bottom:15px; overflow:hidden; background:white; @@ -368,3 +368,6 @@ body.dashboard.project-page .news-feed .project-updates a.project-update span.up body.dashboard.project-page .news-feed .project-updates a.project-update span.update-author{color: #999; font-weight: normal; font-style: italic;} body.dashboard.project-page .news-feed .project-updates a.project-update span.update-author strong{font-weight: bold; font-style: normal;} /* eo Dashboard Page */ + +body.project-page .team_member_new .span-6, .team_member_edit .span-6{ padding:10px 0; } + diff --git a/app/views/admin/projects/_form.html.haml b/app/views/admin/projects/_form.html.haml index 4a4d469997e31616f60ee403d1d67f3651f1c969..ea42ed22311b4b9c335ee9e3f6e7e517fce068c8 100644 --- a/app/views/admin/projects/_form.html.haml +++ b/app/views/admin/projects/_form.html.haml @@ -29,9 +29,9 @@ %br = f.text_area :description .clear - %hr + %br .actions - = f.submit 'Save', :class => "lbutton" + = f.submit 'Save', :class => "grey-button" :javascript $(function(){ diff --git a/app/views/admin/projects/edit.html.haml b/app/views/admin/projects/edit.html.haml index cca3343bc3a4199d5a51eb527010c1cc5493d092..a6062be4014607be03f0ca3e486acf6cf4ff45be 100644 --- a/app/views/admin/projects/edit.html.haml +++ b/app/views/admin/projects/edit.html.haml @@ -1,5 +1,7 @@ %h2= @admin_project.name = render 'form' -= link_to 'Back', admin_projects_path, :class => "right lbutton" -= link_to 'Show', [:admin, @admin_project], :class => "right lbutton" \ No newline at end of file +%br += link_to 'Back', admin_projects_path, :class => "" +| += link_to 'Show', [:admin, @admin_project], :class => "" diff --git a/app/views/admin/projects/index.html.haml b/app/views/admin/projects/index.html.haml index 7ae9397cf95771777d353461ae00bafaae698d5e..f57b98d0f347def6075facad9bf298530c192e4c 100644 --- a/app/views/admin/projects/index.html.haml +++ b/app/views/admin/projects/index.html.haml @@ -7,7 +7,6 @@ %th Last Commit %th %th - %th - @admin_projects.each do |project| %tr @@ -16,9 +15,8 @@ %td= project.path %td= project.users_projects.count %td= last_commit(project) - %td= link_to 'Show', [:admin, project] %td= link_to 'Edit', edit_admin_project_path(project), :id => "edit_#{dom_id(project)}" %td= link_to 'Destroy', [:admin, project], :confirm => 'Are you sure?', :method => :delete = paginate @admin_projects -= link_to 'New Project', new_admin_project_path, :class => "lbutton" += link_to 'New Project', new_admin_project_path, :class => "grey-button" diff --git a/app/views/admin/projects/new.html.haml b/app/views/admin/projects/new.html.haml index 1100e73dfc45ab37f723ce1ffa9c6a864f8b771c..dfbd3edf08011fb5b05288e3a3fce91be69c2994 100644 --- a/app/views/admin/projects/new.html.haml +++ b/app/views/admin/projects/new.html.haml @@ -2,4 +2,5 @@ = render 'form' -= link_to 'Back', admin_projects_path, :class => 'right lbutton' \ No newline at end of file +%br += link_to 'Back', admin_projects_path, :class => '' diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml index 89b9afa84c1cf3a2380588ced663c510d2453a3a..e913754cccb2dc3e38167e4be0679a7963db8bfc 100644 --- a/app/views/admin/projects/show.html.haml +++ b/app/views/admin/projects/show.html.haml @@ -31,8 +31,7 @@ = @admin_project.description %tr %td{:colspan => 2} - = link_to 'Edit', edit_admin_project_path(@admin_project), :class => "lbutton" - = link_to 'Back', admin_projects_path, :class => "right lbutton" + = link_to 'Edit', edit_admin_project_path(@admin_project), :class => "grey-button" .span-14 @@ -58,4 +57,4 @@ %td.span-2= check_box_tag "admin", 1, @admin_project.admins.include?(tm.user), :disabled => :disabled %td= link_to 'Destroy', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete - = link_to 'New Team Member', new_admin_team_member_path(:team_member => {:project_id => @admin_project.id}), :class => "lbutton" + = link_to 'New Team Member', new_admin_team_member_path(:team_member => {:project_id => @admin_project.id}), :class => "grey-button" diff --git a/app/views/admin/team_members/_form.html.haml b/app/views/admin/team_members/_form.html.haml index ab48c513a867a1c02d6abe7e3211d4bc347fdefb..042c84ef6550f8c86a84cf4c4c5a107baf00b234 100644 --- a/app/views/admin/team_members/_form.html.haml +++ b/app/views/admin/team_members/_form.html.haml @@ -6,29 +6,32 @@ - @admin_team_member.errors.full_messages.each do |msg| %li= msg - .span-10 - - if @admin_team_member.new_record? - .field - = f.label :user_id - %br - = f.select :user_id, User.all.map { |user| [user.name, user.id] } - .field - = f.label :project_id - %br - = f.select :project_id, Project.all.map { |user| [user.name, user.id] } - - .span-10 + - if @admin_team_member.new_record? + .span-6 + = f.label :user_id .span-6 - %b Access: - .span-8 - = f.check_box :read - Web Access (Browse Repo) - .span-8 - = f.check_box :write - Git Access (User will be added to commiters list) - .span-6.append-bottom - = f.check_box :admin - Admin (Can manage project) - %hr + = f.select :user_id, User.all.map { |user| [user.name, user.id] } + .span-6 + = f.label :project_id + .span-6 + = f.select :project_id, Project.all.map { |user| [user.name, user.id] } + + .span-6 + %b Access: + .span-6 + = f.check_box :read + Web Access (Browse Repo) + .span-6 + = f.check_box :write + Git Access (User will be added to commiters list) + .span-6 + = f.check_box :admin + Admin (Can manage project) + %br .actions - = f.submit 'Save' + = f.submit 'Save', :class => "grey-button" + +:javascript + $('select#team_member_user_id').selectmenu({width:300}); + $('select#team_member_project_id').selectmenu({width:300}); + diff --git a/app/views/admin/team_members/edit.html.haml b/app/views/admin/team_members/edit.html.haml index d036281283462965592f8030525901e6ef54c6a7..2f4832b86c04dd2e60cba6ee1a1dba4e41c805a7 100644 --- a/app/views/admin/team_members/edit.html.haml +++ b/app/views/admin/team_members/edit.html.haml @@ -1,5 +1,6 @@ = render 'form' +%br = link_to 'Show', admin_team_member_path(@admin_team_member) \| = link_to 'Back', admin_team_members_path diff --git a/app/views/admin/team_members/index.html.haml b/app/views/admin/team_members/index.html.haml index 33f58fa50b1b060248c997a6e454552a236afdce..0cd87d21a489aa367acab9cf8582918b166cc98a 100644 --- a/app/views/admin/team_members/index.html.haml +++ b/app/views/admin/team_members/index.html.haml @@ -10,7 +10,6 @@ %th Added %th %th - %th - members.each do |tm| - user = tm.user %tr @@ -20,11 +19,10 @@ %td.span-1= check_box_tag "commit", 1, project.writers.include?(user), :disabled => :disabled %td.span-2= check_box_tag "admin", 1, project.admins.include?(user), :disabled => :disabled %td.span-3= time_ago_in_words(tm.updated_at) + " ago" - %td= link_to 'Show', admin_team_member_path(tm) %td= link_to 'Edit', edit_admin_team_member_path(tm), :id => "edit_#{dom_id(tm)}" %td= link_to 'Destroy', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete %br = paginate @admin_team_members -= link_to 'New Team Member', new_admin_team_member_path += link_to 'New Team Member', new_admin_team_member_path, :class => "grey-button" diff --git a/app/views/admin/team_members/new.html.haml b/app/views/admin/team_members/new.html.haml index 1321f42e7db5e6c691871d05cd110863927a3099..c08ddc48eed9a763c1bd86a5ed0bb70cc7441e29 100644 --- a/app/views/admin/team_members/new.html.haml +++ b/app/views/admin/team_members/new.html.haml @@ -2,4 +2,5 @@ = render 'form' +%br = link_to 'Back', admin_team_members_path diff --git a/app/views/admin/team_members/show.html.haml b/app/views/admin/team_members/show.html.haml index dd42dee7a268ac0aa349513b9ec676a7f0e531c0..1555424bf3c3698197bfc8e9276327e48e73b7b4 100644 --- a/app/views/admin/team_members/show.html.haml +++ b/app/views/admin/team_members/show.html.haml @@ -1,5 +1,3 @@ -%p#notice= notice - #infoblock %p %b Name: @@ -9,22 +7,25 @@ = @admin_team_member.project.name %p %b Since: - = @admin_team_member.updated_at + = @admin_team_member.updated_at.stamp("Nov 11, 2010") #infoblock .span-6 %b Access: - .span-8 + %br + .span-6 = check_box_tag "read", 1, @admin_team_member.read, :disabled => :disabled Web Access (Browse Repo) - .span-8 + %br + .span-6 = check_box_tag "commit", 1, @admin_team_member.write, :disabled => :disabled Git Access (User will be added to commiters list) + %br .span-6.append-bottom = check_box_tag "admin", 1, @admin_team_member.admin, :disabled => :disabled Admin (Can manage project) -%hr +%br = link_to 'Edit', edit_admin_team_member_path(@admin_project) \| diff --git a/app/views/admin/users/_form.html.haml b/app/views/admin/users/_form.html.haml index 35d8aa47e312c020640be9c747333750e0db7dd2..e695332239ffe521cdb1f303733961499b4fe6f7 100644 --- a/app/views/admin/users/_form.html.haml +++ b/app/views/admin/users/_form.html.haml @@ -44,6 +44,6 @@ %br = f.text_field :twitter .clear - %hr + %br .actions - = f.submit 'Save', :class => "lbutton" + = f.submit 'Save', :class => "grey-button" diff --git a/app/views/admin/users/edit.html.haml b/app/views/admin/users/edit.html.haml index a9ae7986da287c7e14410b2fddba22114e3ceff2..2ccd2f7254655f410a49296a64666d574d4d554b 100644 --- a/app/views/admin/users/edit.html.haml +++ b/app/views/admin/users/edit.html.haml @@ -1,4 +1,6 @@ = render 'form' -= link_to 'Back', admin_users_path, :class => "right lbutton" -= link_to 'Show', [:admin, @admin_user], :class => "right lbutton" +%br += link_to 'Back', admin_users_path, :class => "" +| += link_to 'Show', [:admin, @admin_user], :class => "" diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml index 78e84398fd55459c0c8246c23778aad7407f9ada..db58a6b47a2b7b471ead00ae7b55efc7f540b3cf 100644 --- a/app/views/admin/users/index.html.haml +++ b/app/views/admin/users/index.html.haml @@ -6,7 +6,6 @@ %th Projects %th %th - %th - @admin_users.each do |user| %tr @@ -14,9 +13,9 @@ %td= link_to user.name, [:admin, user] %td= user.email %td= user.users_projects.count - %td= link_to 'Show', [:admin, user] %td= link_to 'Edit', edit_admin_user_path(user), :id => "edit_#{dom_id(user)}" %td= link_to 'Destroy', [:admin, user], :confirm => 'Are you sure?', :method => :delete = paginate @admin_users -= link_to 'New User', new_admin_user_path, :class => "lbutton" +%br += link_to 'New User', new_admin_user_path, :class => "grey-button" diff --git a/app/views/admin/users/new.html.haml b/app/views/admin/users/new.html.haml index b188d2ab320ec1edcbf06fa5fe9dee7b4a106c9b..87ea570b7909ffdc41a586add5b43987c83148fc 100644 --- a/app/views/admin/users/new.html.haml +++ b/app/views/admin/users/new.html.haml @@ -2,4 +2,5 @@ = render 'form' -= link_to 'Back', admin_users_path, :class => "right lbutton" +%br += link_to 'Back', admin_users_path, :class => "" diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index 2437a01a150cd1a121462caa9044afceab13f61d..2a8b86c462e24dbde97b0b9ff597571fe4b811b5 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -44,8 +44,7 @@ = @admin_user.twitter %tr %td{:colspan => 2} - = link_to 'Edit', edit_admin_user_path(@admin_user), :class => "lbutton" - = link_to 'Back', admin_users_path, :class => "right lbutton" + = link_to 'Edit', edit_admin_user_path(@admin_user), :class => "grey-button" .span-14 %h2 Projects @@ -59,6 +58,7 @@ %th Git %th Admin %th + %th - @admin_user.users_projects.each do |tm| - project = tm.project @@ -71,4 +71,4 @@ %td= link_to 'Edit', edit_admin_team_member_path(tm) %td= link_to 'Cancel', admin_team_member_path(tm), :confirm => 'Are you sure?', :method => :delete - = link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}), :class => "lbutton" + = link_to 'Add To Another Project', new_admin_team_member_path(:team_member => {:user_id => @admin_user.id}), :class => "grey-button" diff --git a/app/views/commits/show.html.haml b/app/views/commits/show.html.haml index 6fb4b5e3f4f2d3280ea6dbfc2175fd2c2b2f4f0a..0ebd971485a4d8b75fe1ce3ff3caee68bb53cfae 100644 --- a/app/views/commits/show.html.haml +++ b/app/views/commits/show.html.haml @@ -1,15 +1,10 @@ - content_for(:body_class, "project-page commits-page") - --#%a.right.button{:href => "#"} Download --#-if can? current_user, :admin_project, @project - %a.right.button.blue{:href => "#"} EDIT %h2.icon %span %d = "#{truncate(@commit.safe_message, :length => 50)}" .right - = link_to 'Browse Code', tree_project_ref_path(@project, @commit.id), :class => "button" --#= link_to 'Back', project_commits_path(@project), :class => "button" + = link_to 'Browse Code', tree_project_ref_path(@project, @commit.id), :class => "browse-code button yellow" %table.round-borders %thead %th{:colspan => 2} Details diff --git a/app/views/issues/_form.html.haml b/app/views/issues/_form.html.haml index ffcdc028ec1d88dc3bc875c1afcfa0d88734ab78..d648f71edf2f1df23c231c415e2d6879c6cb4d4e 100644 --- a/app/views/issues/_form.html.haml +++ b/app/views/issues/_form.html.haml @@ -20,6 +20,5 @@ = f.label :closed %br = f.check_box :closed - %hr .form-row - = f.submit 'Save', :class => "lbutton vm" + = f.submit 'Save', :class => "grey-button" diff --git a/app/views/issues/_show.html.haml b/app/views/issues/_show.html.haml index 665e8ad0cb4fb7d4cff78eecb6359e4ea78f8a57..a8e016a9c7fe01e97db994ea768d6a36e5025870 100644 --- a/app/views/issues/_show.html.haml +++ b/app/views/issues/_show.html.haml @@ -23,4 +23,4 @@ - if can? current_user, :write_issue, issue = link_to 'Edit', edit_project_issue_path(@project, issue), :class => "cgray edit-issue-link", :remote => true - if can?(current_user, :admin_issue, @project) || issue.author == current_user - = link_to 'Destroy', [@project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-issue negative", :id => "destroy_issue_#{issue.id}" + = link_to 'Remove', [@project, issue], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-issue negative", :id => "destroy_issue_#{issue.id}" diff --git a/app/views/issues/index.html.haml b/app/views/issues/index.html.haml index b3da9cdc1ee7360de1e77e06b946eca0dfab7b19..42a7b7ed9246a873a178a8c3a6ca0aebac5bc991 100644 --- a/app/views/issues/index.html.haml +++ b/app/views/issues/index.html.haml @@ -5,7 +5,7 @@ .top_panel_issues - if can? current_user, :write_issue, @project %div{:class => "left", :style => "margin-right: 10px;" } - = link_to 'New Issue', new_project_issue_path(@project), :remote => true, :class => "lbutton vm" + = link_to 'New Issue', new_project_issue_path(@project), :remote => true, :class => "grey-button", :style => "margin-top:5px;" = form_tag search_project_issues_path(@project), :method => :get, :remote => true, :class => :left, :id => "issue_search_form" do = hidden_field_tag :project_id, @project.id, { :id => 'project_id' } = search_field_tag :issue_search, nil, { :placeholder => 'Search', :class => 'issue_search' } diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index e02dbe045c4e5164cc4fa067b47f53bb18ffc675..f013f12a2f4aee867eacce2812a8a1548f779790 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml @@ -10,8 +10,8 @@ REQ_URI = "#{request.env["REQUEST_URI"]}"; REQ_REFFER = "#{request.env["HTTP_REFERER"]}"; %body{ :class => body_class('project-page'), :id => yield(:boyd_id)} + = render :partial => "layouts/flash" #container - = render :partial => "layouts/flash" = render :partial => "layouts/head_panel" .project-container .project-sidebar diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 9022ecb11c83a9907e83dca8715acce049b08eed..2a9732e7391c66f7ef3175880ce2d43bc8c72850 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -10,8 +10,8 @@ REQ_URI = "#{request.env["REQUEST_URI"]}"; REQ_REFFER = "#{request.env["HTTP_REFERER"]}"; %body{ :class => body_class, :id => yield(:boyd_id)} + = render :partial => "layouts/flash" #container - = render :partial => "layouts/flash" = render :partial => "layouts/head_panel" = render :partial => "layouts/page_title" = yield diff --git a/app/views/layouts/profile.html.haml b/app/views/layouts/profile.html.haml index c3865608c6317a8a125e276d9f818b9e72d87702..c8c48138775a54db9e2c4e8a0329123fd6a33655 100644 --- a/app/views/layouts/profile.html.haml +++ b/app/views/layouts/profile.html.haml @@ -10,8 +10,8 @@ REQ_URI = "#{request.env["REQUEST_URI"]}"; REQ_REFFER = "#{request.env["HTTP_REFERER"]}"; %body{ :class => body_class('project-page'), :id => yield(:boyd_id)} + = render :partial => "layouts/flash" #container - = render :partial => "layouts/flash" = render :partial => "layouts/head_panel" .project-container .project-sidebar diff --git a/app/views/layouts/project.html.haml b/app/views/layouts/project.html.haml index b06e75ef6987a89dbeb0ceb5808bf07559823e61..bc019f38f087933150d1fed7b2b5a730bb3252d0 100644 --- a/app/views/layouts/project.html.haml +++ b/app/views/layouts/project.html.haml @@ -14,8 +14,8 @@ REQ_URI = "#{request.env["REQUEST_URI"]}"; REQ_REFFER = "#{request.env["HTTP_REFERER"]}"; %body{ :class => body_class('project-page'), :id => yield(:boyd_id)} + = render :partial => "layouts/flash" #container - = render :partial => "layouts/flash" = render :partial => "layouts/head_panel" .project-container .project-sidebar diff --git a/app/views/notes/_form.html.haml b/app/views/notes/_form.html.haml index 212705167aa9de81764c67a37e2e4ef00a6c870e..c2aa04e2ef6305be02108aa250d359f0d3ec85dc 100644 --- a/app/views/notes/_form.html.haml +++ b/app/views/notes/_form.html.haml @@ -28,4 +28,4 @@ .clear %br - = f.submit 'Add note', :class => "button", :id => "submit_note" + = f.submit 'Add note', :class => "grey-button", :id => "submit_note" diff --git a/app/views/projects/_team.html.haml b/app/views/projects/_team.html.haml index d12ccac7047bb5bdfab68151dcbd1001ff88722c..1df19364079be8fc7d8294e2418780326ff63b97 100644 --- a/app/views/projects/_team.html.haml +++ b/app/views/projects/_team.html.haml @@ -1,6 +1,7 @@ - if can? current_user, :admin_team_member, @project %div#new-member-holder - = link_to "Add new", new_project_team_member_path(@project), :remote => true, :class => "lbutton vm" + = link_to "Add new", new_project_team_member_path(@project), :remote => true, :class => "grey-button" + %br %table.round-borders#team-table %thead %th Name diff --git a/app/views/team_members/_form.html.haml b/app/views/team_members/_form.html.haml index d2f7fd66dcef6b9d8091cec0ab53d4d283a5354c..042fc09df717b555a330c297d28a391ceebd3740 100644 --- a/app/views/team_members/_form.html.haml +++ b/app/views/team_members/_form.html.haml @@ -7,7 +7,7 @@ .span-6.append-bottom %b Name - %br + .span-6 = f.select(:user_id, User.not_in_project(@project).all.collect {|p| [ p.name, p.id ] }, { :include_blank => "Select user" }) .span-6 %b Access: @@ -20,6 +20,6 @@ .span-6.append-bottom = f.check_box :admin Admin - %hr + %br .span-6 - = f.submit 'Save', :class => "lbutton vm" + = f.submit 'Save', :class => "grey-button" diff --git a/app/views/team_members/_show.html.haml b/app/views/team_members/_show.html.haml index 88260cca5378f0d1aaf29c2339ade6170c21fae3..250bfa198df17e426143b3329b066518a4bc0dc9 100644 --- a/app/views/team_members/_show.html.haml +++ b/app/views/team_members/_show.html.haml @@ -17,4 +17,4 @@ %td= check_box_tag "admin", 1, member.admin, :disabled => :disabled - if can? current_user, :admin_team_member, @project %td - = link_to 'Cancel', project_team_member_path(:project_id => @project, :id => member.id), :confirm => 'Are you sure?', :method => :delete, :class => "lbutton negative delete-team-member", :remote => true + = link_to 'Cancel', project_team_member_path(:project_id => @project, :id => member.id), :confirm => 'Are you sure?', :method => :delete, :class => "grey-button negative delete-team-member", :remote => true