| <% @heading = "Version: #{@version.version_text}" %> |
| <% @overview = "This page show the details of version #{link_to_version(@version, 'version')} of page #{link_to_page(@version.site, @version.page)}" %> |
| |
| <%= error_messages_for 'version' %> |
| |
| <div class="sectionHeading">Description</div> |
| <div class="sectionContent"> |
| <table cellpadding="0" cellspacing="0" border="0" class="sectionTable"> |
| <tr valign="top"> |
| <td class="sectionTableCell"> |
| <%= @version.note %><br> |
| <% if mine?(@version) || cadmin? %> |
| [<%= link_to 'edit', :action => 'edit', :id => @version.id %>] |
| <% end %> |
| </td> |
| </tr> |
| </table> |
| </div> |
| |
| <div class="sectionHeading">Relationships</div> |
| <div class="sectionContent"> |
| <table cellpadding="0" cellspacing="0" border="0" class="sectionTable"> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Base Version</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_version @baseversion , 'version' if @baseversion %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Latest Version</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_version @latest_version, 'version' if @latest_version %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Current Version</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_version @current_version, 'version' if @current_version %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Source Version</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_version @source_version, 'version' if @source_version %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Previous Version</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_version @previous_version, 'version' if @previous_version %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Page</th> |
| <td align="left" class="sectionTableCell"><%= link_to_page @version.site, @version.page %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">User</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_user(@version.user) %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Reviewer</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_reviewer(@version) %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Done</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_done_toggle(@version) %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Marked "Done" By</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_user(@version.user_thatmarkeddone) if @version.user_thatmarkeddone %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Marked "ToDo" By</th> |
| <td align="left" class="sectionTableCell"> |
| <%= link_to_user(@version.user_thatmarkedtodo) if @version.user_thatmarkedtodo %> |
| </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Site</th> |
| <td align="left" class="sectionTableCell"><%= link_to_site @version.site %> </td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Baseline</th> |
| <td align="left" class="sectionTableCell"><%= link_to_baseline(@version.baseline, nil) %> </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"><%= @version.id.to_s %></td> |
| </tr> |
| <tr valign="top"> |
| |
| <th scope="row" class="sectionTableHeading">Version</th> |
| <td align="left" class="sectionTableCell"><%= @version.version %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Path</th> |
| <td align="left" class="sectionTableCell"><%= @version.path %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">URL</th> |
| <td align="left" class="sectionTableCell"><%= link_to "http://#{request.host}/#{@version.rel_path_root}", "/#{@version.rel_path_root}" %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Created On</th> |
| <td align="left" class="sectionTableCell"><%= @version.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"><%= @version.updated_on.strftime("%I:%M %p %d-%b-%y") %></td> |
| </tr> |
| </table> |
| </div> |
| |
| <% if @checkout %> |
| <div class="sectionHeading">Checkout 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"><%= @checkout.id.to_s %></td> |
| </tr> |
| <tr valign="top"> |
| <th scope="row" class="sectionTableHeading">Created On</th> |
| <td align="left" class="sectionTableCell"><%= @checkout.created_on.strftime("%I:%M %p %d-%b-%y") %></td> |
| </tr> |
| </table> |
| </div> |
| <% end %> |
| |
| |
| |
| |
| |
| |
| |