lil restyle
This commit is contained in:
parent
c66bc99fb7
commit
c8b955a44b
15 changed files with 71 additions and 61 deletions
|
@ -1,9 +1,4 @@
|
|||
= render "repositories/head"
|
||||
|
||||
|
||||
|
||||
|
||||
.right= link_to "Add new", new_project_hook_path(@project), :class => "grey-button append-bottom-10"
|
||||
- unless @hooks.empty?
|
||||
%div.update-data.ui-box.ui-box-small
|
||||
.data
|
||||
|
@ -19,7 +14,7 @@
|
|||
%h3 No hooks
|
||||
|
||||
.clear
|
||||
%h3 Help
|
||||
%hr
|
||||
%p
|
||||
Post receive hooks. For now only POST request allowed. We send some data with request. Example below
|
||||
|
||||
|
|
|
@ -15,4 +15,13 @@
|
|||
%span
|
||||
Snippets
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
- 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", :remote => true do
|
||||
= image_tag "add_new.png", :width => 14
|
||||
|
|
|
@ -1,8 +1,3 @@
|
|||
- if can? current_user, :admin_team_member, @project
|
||||
%div#new-member-holder
|
||||
.right= link_to "Add new", new_project_team_member_path(@project), :remote => true, :class => "grey-button"
|
||||
.clear
|
||||
%br
|
||||
%table.round-borders#team-table
|
||||
%thead
|
||||
%th Name
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
%div.top_project_menu
|
||||
- if @project.repo_exists?
|
||||
%span= link_to image_tag("home.png", :width => 20), project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil
|
||||
%span= link_to "Tree", tree_project_path(@project), :class => current_page?(:controller => "projects", :action => "tree", :id => @project) ? "current" : nil
|
||||
%span= link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil
|
||||
%span
|
||||
= link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do
|
||||
Team
|
||||
- if @project.users_projects.count > 0
|
||||
%span{ :class => "top_menu_count" }= @project.users_projects.count
|
||||
%span
|
||||
= link_to project_issues_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
|
||||
Issues
|
||||
- if @project.issues.opened.count > 0
|
||||
%span{ :class => "top_menu_count" }= @project.issues.opened.count
|
||||
%span
|
||||
= link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
|
||||
Wall
|
||||
- if @project.common_notes.count > 0
|
||||
%span{ :class => "top_menu_count" }= @project.common_notes.count
|
||||
%span
|
||||
= link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do
|
||||
Snippets
|
||||
- if @project.snippets.count > 0
|
||||
%span{ :class => "top_menu_count" }= @project.snippets.non_expired.count
|
||||
|
||||
- if @commit
|
||||
%span= link_to truncate(commit_name(@project,@commit), :length => 15), project_commit_path(@project, :id => @commit.id), :class => current_page?(:controller => "commits", :action => "show", :project_id => @project, :id => @commit.id) ? "current" : nil
|
||||
|
|
@ -1,13 +1,12 @@
|
|||
#tree-breadcrumbs
|
||||
%h2.icon
|
||||
%span
|
||||
%d
|
||||
= link_to tree_project_ref_path(@project, @ref, :path => nil), :remote => true do
|
||||
= @project.code
|
||||
- tree.breadcrumbs(3) do |link|
|
||||
\/
|
||||
= link
|
||||
|
||||
%h2
|
||||
= link_to tree_project_ref_path(@project, @ref, :path => nil), :remote => true do
|
||||
= @project.code
|
||||
- tree.breadcrumbs(4) do |link|
|
||||
\/
|
||||
= link
|
||||
|
||||
%span.tree_progress
|
||||
.clear
|
||||
#tree-content-holder
|
||||
- if tree.is_blob?
|
||||
|
|
|
@ -15,5 +15,9 @@
|
|||
%span
|
||||
Deploy Keys
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
= render "projects/project_head"
|
||||
- if can? current_user, :write_snippet, @project
|
||||
.right= link_to 'New Snippet', new_project_snippet_path(@project), :class => "grey-button append-bottom-10"
|
||||
|
||||
- unless @snippets.fresh.empty?
|
||||
%div{ :class => "update-data ui-box ui-box-small ui-box-big" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue