Document ID in the document's details

This commit is contained in:
Karel Picman 2016-02-19 14:44:08 +01:00
parent 6fcfc7c460
commit d478c51754
2 changed files with 29 additions and 13 deletions

View File

@ -69,6 +69,11 @@
<%= render(:partial => 'file_new_revision') %>
<% end %>
<div class="dmsf_id_box dmsf_detail">
<%= label_tag('', "#{l(:label_document)}:") %>
<%= "##{@file.id}" %>
</div>
<h3><%= l(:heading_revisions) %></h3>
<% @file.revisions.visible[@revision_pages.offset,@revision_pages.per_page].each do |revision| %>
<div class="revision_box dmsf_detail dataTables_wrapper">
@ -92,7 +97,7 @@
<%= link_to(revision.user.name, user_path(revision.user)) if revision.user %>
</div>
</div>
<div style="border: 1px solid #e4e4e4;">
<div class="dmsf_revision_inner_box">
<div class="clear">
<div class="splitcontentleft">
<%= label_tag('', "#{l(:label_title)}:") %>
@ -117,12 +122,9 @@
<% wf = DmsfWorkflow.find_by_id(revision.dmsf_workflow_id) %>
<% if wf %>
<%= "#{wf.name} - " %>
<%= link_to(
revision.workflow_str(false),
log_dmsf_workflow_path(
:project_id => @project.id,
:id => wf.id,
:dmsf_file_revision_id => revision.id),
<%= link_to(revision.workflow_str(false),
log_dmsf_workflow_path(:project_id => @project.id,
:id => wf.id, :dmsf_file_revision_id => revision.id),
:title => DmsfWorkflow.assignments_to_users_str(wf.next_assignments(revision.id)),
:remote => true) %>
<% else %>
@ -131,7 +133,7 @@
</div>
<div class="splitcontentright clear">
<%= label_tag('', "#{l(:label_mime)}:") %>
<%= h(revision.mime_type) %>&nbsp;
<%= h(revision.mime_type) %>
<br/>
<%= label_tag('', "#{l(:label_size)}:") %>
<%= number_to_human_size(revision.size) %>

View File

@ -2,7 +2,7 @@
* Redmine plugin for Document Management System "Features"
*
* Copyright (C) 2011 Vít Jonáš <vit.jonas@gmail.com>
* Copyright (C) 2011-15 Karel Pičman <karel.picman@kontron.com>
* Copyright (C) 2011-16 Karel Pičman <karel.picman@kontron.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -221,6 +221,20 @@ tr.workflow.locked a { color: #aaa; }
line-height:1.5em;
}
.dmsf_revision_inner_box {
border: 1px solid #e4e4e4;
}
.dmsf_id_box {
float: right;
white-space: nowrap;
line-height: 1.5em;
color: #505050;
margin-top: 5px;
padding-left: 10px;
//font-size: 0.9em;
}
div.revision_box .ui-widget-header {
font-weight: normal;
}