Permalink
Browse files

adjustments for webistrano version 1.5

  • Loading branch information...
1 parent 6877031 commit 8717cab187b6eb6dbbb090ffc4bb89540979356e Daniel Mattes committed Jun 14, 2010
@@ -23,7 +23,7 @@ def manifest
"#{match}\n projects.resources :project_users\n"
end
- m.gsub_file 'app/controllers/application.rb', /(#{Regexp.escape("class ApplicationController < ActionController::Base")})/mi do |match|
+ m.gsub_file 'app/controllers/application_controller.rb', /(#{Regexp.escape("class ApplicationController < ActionController::Base")})/mi do |match|
"#{match}\n include WebistranoPrivileges::ControllerExtensions\n before_filter :setup_privileges\n"
end
@@ -26,7 +26,8 @@
<td><%%=h project.created_at.to_s(:date_with_day) %></td>
<td><%%= link_to 'Edit', edit_project_path(project) %></td>
<%%if current_user.admin?%>
- <td><%%= link_to 'Delete', project_path(project), :confirm => 'Are you sure?', :method => :delete %></td>
+ <td><%%= link_to 'Clone', clone_form_path(project) %></td>
+ <td><%%= link_to 'Delete', project_path(project), :confirm => 'Are you sure?', :method => :delete %></td>
<%%end%>
</tr>
<%% end %>
@@ -40,3 +41,14 @@
<%%end%>
</fieldset>
+
+<%% content_for(:breadcrumb) do %>
+ <%% breadcrumb_box do %>
+ <%%= link_to "Projects", projects_path %>
+ <%% end %>
+<%% end %>
+
+<%% content_for(:page_title) do %>
+ <%% @page_title = "Projects" %>
+ <h2>Projects</h2>
+<%% end %>
@@ -2,7 +2,7 @@
<div id="projects_open_content" style="<%%=h show_if_opened(status) %>">
<%% if projects.length > 0 %>
<%% for project in projects.sort{|a,b| a.name <=> b.name} %>
- <a href="<%%= project_path(project) %>" class="menu_link <%%=h active_link_class(project) %>">
+ <a href="<%%= project_path(project) %>" class="menu_link <%%=h active_link_class(project) %>" title="<%%=h project.name %>">
<div class="menu_icons">
<%%= image_tag('peritor_theme/arrow_menu_right.gif', :width => '20', :height => '20', :border => '0', :style => "#{h( do_not_show_stages_of_project(project))}", :id => "#{h(dom_id(project))}_arrow_right", :onclick => "open_menu('#{h( dom_id(project))}'); return false;" )%>
@@ -1,48 +1,39 @@
-<h2>Project: <%%=h @project.name %></h2>
-
-<div class="special_box stages_box">
- <%% if @project.stages.count > 0 %>
- <p><strong>Choose a stage:</strong></p>
- <%% for stage in @project.stages %>
- <p><%%= link_to h(stage.name), project_stage_path(@project, stage), :class => 'arrow_link' %></p>
+<div class="special_box">
+ <div class="special_box_top"></div>
+ <div class="special_box_middle stages_box">
+ <%% if @project.stages.count > 0 %>
+ <p><strong>Choose a stage:</strong></p>
+ <%% for stage in @project.stages %>
+ <p><%%= link_to h(stage.name), project_stage_path(@project, stage), :class => 'arrow_link' %></p>
+ <%% end %>
+ <%% else %>
+ <p><strong>No stage configured yet</strong></p>
+ <%%= link_to 'New stage', new_project_stage_path(@project), :class => 'arrow_link' %>
<%% end %>
- <%% else %>
- <p><strong>No stage configured yet</strong></p>
- <%%= link_to 'New stage', new_project_stage_path(@project), :class => 'arrow_link' %>
- <%% end %>
+ </div>
+ <div class="special_box_bottom"></div>
</div>
-<div style="float: left; width:380px;">
- <div class="box_top_left">
- <div class="box_top_right">
- <div class="box_top">
- </div>
- </div>
- </div>
- <div class="box_body" style="min-height: 123px;">
- <div>
- <p>
- <b>Description:</b>
- <%%=h @project.description %>
- </p>
- <p>
- <b>Project Type:</b>
- <%%=h @project.template %>
- </p>
- <p>
- <b>#Deployments:</b>
- <%%=h @project.deployments.count %>
- </p><br />
- <%%= link_to 'Edit Project', edit_project_path(@project), :class => 'arrow_link' %> |
- <%%= link_to 'Delete', project_path(@project), :confirm => 'Are you sure?', :method => :delete, :class => 'arrow_link' %>
- </div>
- </div>
- <div class="box_bottom_left">
- <div class="box_bottom_right">
- <div class="box_bottom">
- </div>
- </div>
+<div class="box">
+ <div class="box_top"></div>
+ <div class="box_middle">
+ <p>
+ <b>Description:</b>
+ <%%=h @project.description %>
+ </p>
+ <p>
+ <b>Project Type:</b>
+ <%%=h @project.template %>
+ </p>
+ <p>
+ <b>#Deployments:</b>
+ <%%=h @project.deployments.count %>
+ </p><br />
+ <%%= link_to 'Edit project', edit_project_path(@project), :class => 'arrow_link' %> |
+ <%%= link_to 'Clone project', clone_form_path(@project), :class => 'arrow_link' %> |
+ <%%= link_to 'Delete project', project_path(@project), :confirm => 'Are you sure?', :method => :delete, :class => 'arrow_link' %>
</div>
+ <div class="box_bottom"></div>
</div>
<div class="clear"></div>
@@ -71,3 +62,24 @@
<%%= render(:partial => 'users')%>
<br />
</fieldset>
+
+<br /><br />
+
+<fieldset class="fieldset">
+ <legend>Recent Deployments</legend>
+ <%%= render(:partial => 'deployments')%>
+ <br />
+</fieldset>
+
+<%% content_for(:breadcrumb) do %>
+ <%% breadcrumb_box do %>
+ <%%= link_to "Manage projects", projects_path, :style => "float:right", :class => "arrow_link" %>
+ <%%= link_to "Projects", projects_path %> &gt;
+ Project <%%= link_to current_project.name, project_path(current_project) %>
+ <%% end %>
+<%% end %>
+
+<%% content_for(:page_title) do %>
+ <%% @page_title = "Project #{h(current_project.name)}" %>
+ <h2>Project <%%= link_to h(current_project.name), project_path(current_project) %></h2>
+<%% end %>

0 comments on commit 8717cab

Please sign in to comment.