| <% @heading = "Baseline Process: #{@site.title}" if @site.baseline_process? %> |
| <% @heading = "Wiki: #{@site.title}" if @site.wiki? %> |
| <% @overview = "This page display details of site " + link_to_site(@site) %> |
| |
| <div id="menu"> |
| <%= link_to 'new page', {:controller => 'page', :action => 'new', :site_id => @site}, :title => 'Create a new page based on a template' %> |
| | <%= link_to 'list', :action => 'list' %> |
| <% if admin? %> |
| | <%= link_to 'edit', :action => 'edit', :id => @site %> |
| <% end %> |
| <% if cadmin? && @site.baseline_process? %> |
| | <%= link_to 'new difference analysis', {:controller => 'difference_analyses', :action => 'new', :site_id => @site.id}, :title => "Create a new difference analysis: what is new, changed, removed, equal in baseline process" %> |
| <% end %> |
| </div> |
| |
| <div class="sectionHeading">Description</div> |
| <div class="sectionContent"> |
| <table cellpadding="0" cellspacing="0" border="0" class="sectionTable"> |
| <tr> |
| <td class="sectionTableCell"> |
| <%= @site.description %> |
| </td> |
| </tr> |
| </table> |
| </div> |
| |
| <% if @site.wiki? %> |
| <br> |
| <br> |
| <p> |
| <%= tabs([["Versions", url_for(:id => @site.id), (['show',nil].include?(params[:tab]))], |
| ["Comments", url_for(:id => @site.id, :tab => 'comments'), (params[:tab] == "comments")], |
| ["Files", url_for(:id => @site.id, :tab => 'pages'), (params[:tab] == "pages")]], 80) %> |
| </p> |
| |
| <%= links_to_pages(@version_pages) if @version_pages %> |
| <%= links_to_pages(@comment_pages) if @comment_pages %> |
| <%= links_to_pages(@page_pages) if @page_pages %> |
| |
| <%= render(:partial => 'versions/versions_list') if @version_pages %> |
| <%= render(:partial => 'comments/comments_list') if @comment_pages %> |
| <%= render(:partial => 'pages/list') if @page_pages %> |
| <br> |
| <br> |
| <% end %> |
| |
| <div class="sectionHeading">Relationships</div> |
| <div class="sectionContent"> |
| <table cellpadding="0" cellspacing="0" border="0" class="sectionTable"> |
| <tr> |
| <th scope="row" class="sectionTableHeading">Current Baseline </th> |
| <td align="left" class="sectionTableCell"><%= link_to_baseline @site.baseline, nil %> |
| <% if @site.wiki? && admin? %> |
| <%= start_form_tag({:action => 'update_wiki', :id => @site}, {:method => 'get'}) %> |
| <input type="submit" value="Update Wiki"> |
| <%= end_form_tag %> |
| <% end %> |
| </td> |
| </tr> |
| <%if @site.status == 'U' %> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Target Baseline</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_baseline @site.baseline_process.baseline, nil %> |
| <% if cadmin? %> |
| <%= start_form_tag :action => 'update_wiki_now', :id => @site %> |
| <input type="submit" value="Update Wiki now!"> |
| <%= end_form_tag %> |
| <% end %> |
| </td> |
| </tr> |
| <% end %> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Baselines </th> |
| <td align="left" class="sectionTableCell" > |
| Current and previous baselines: |
| <ul> |
| <% for baseline in @site.baselines %> |
| <li> |
| <%= link_to_baseline baseline, @site %> |
| </li> |
| <% end %> |
| </ul> |
| </td> |
| </tr> |
| <% unless @site.checkouts.empty? %> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Checkouts</th> |
| <td align="left" class="sectionTableCell" > |
| <ul> |
| <% for checkout in @site.checkouts %> |
| <li> |
| <%= link_to_version2 checkout.version %> |
| </li> |
| <% end %> |
| </ul> |
| </td> |
| </tr> |
| <% end %> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Users</th> |
| <td align="left" class="sectionTableCell" > |
| The following users created new versions or submitted comments: |
| <ul> |
| <% for user in @site.users %> |
| <li> |
| <%= link_to_user(user) %> |
| </li> |
| <% end %> |
| </ul> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Difference Analyses</th> |
| <td align="left" class="sectionTableCell"> |
| <ul> |
| <% for difference_analysis in @site.difference_analyses2 %> |
| <li> |
| <%= link_to_difference_analysis_from(difference_analysis) %> |
| </li> |
| <% end %> |
| </ul> |
| </td> |
| </tr> |
| </table> |
| </div> |
| |
| <div class="sectionHeading">Properties</div> |
| <div class="sectionContent"> |
| <table cellpadding="0" cellspacing="0" border="0" class="sectionTable"> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">ID</th> |
| <td align="left" class="sectionTableCell"><%= @site.id %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Title</th> |
| <td align="left" class="sectionTableCell"><%= @site.title %> <%= @site.site_type %> <%= @site.id.to_s %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Wiki</th> |
| <td align="left" class="sectionTableCell"> |
| <% if @site.status == 'P' %> |
| Pending |
| <% if cadmin? %> |
| <%= form_tag :action => "wikify_now", :id => @site.id %> |
| <input type="submit" value="Wikify now!"> |
| <%= end_form_tag %> |
| <% end %> |
| <% else %> |
| <%= @site.site_type %> |
| <% end %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Root Path</th> |
| <td align="left" class="sectionTableCell"><%= @site.path %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">URL</th> |
| <td align="left" class="sectionTableCell"><%= url_for(@site.rel_path) %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Versions</th> |
| <td align="left" class="sectionTableCell"><%= @site.versions_count.to_s %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Comments</th> |
| <td align="left" class="sectionTableCell"><%= @site.comments_count.to_s %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">HTML Files</th> |
| <td align="left" class="sectionTableCell"><%= @site.html_files_count.to_s %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Scanned Pages</th> |
| <td align="left" class="sectionTableCell"><%= @site.pages_count %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Wiki Files</th> |
| <td align="left" class="sectionTableCell"><%= @site.wikifiable_files_count.to_s %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Created On</th> |
| <td align="left" class="sectionTableCell"><%= @site.created_on.strftime("%I:%M %p %d-%b-%y") %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Updated On</th> |
| <td align="left" class="sectionTableCell"><%= @site.updated_on.strftime("%I:%M %p %d-%b-%y") %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Content Scanned On</th> |
| <td align="left" class="sectionTableCell"><%= @site.content_scanned_on.strftime("%I:%M %p %d-%b-%y") if @site.content_scanned_on %> |
| <% if cadmin? %> |
| <%= form_tag :action => "scan4content", :id => @site.id %> |
| <input type="submit" value="Scan now!"> |
| <%= end_form_tag %> |
| <% end %> |
| </td> |
| </tr> |
| </table> |
| </div> |
| |
| |
| |
| |
| |
| |
| |
| |
| |