Document ID in the document's details
This commit is contained in:
parent
6fcfc7c460
commit
d478c51754
@ -61,7 +61,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render(:partial => '/dmsf/path', :locals => {:folder => @file.folder, :filename => @file.title}) %>
|
||||
<%= render(:partial => '/dmsf/path', :locals => {:folder => @file.folder, :filename => @file.title}) %>
|
||||
|
||||
<% if User.current.allowed_to?(:file_manipulation, @file.project) && !@file.locked_for_user? %>
|
||||
<%= error_messages_for('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) %>
|
||||
<%= h(revision.mime_type) %>
|
||||
<br/>
|
||||
<%= label_tag('', "#{l(:label_size)}:") %>
|
||||
<%= number_to_human_size(revision.size) %>
|
||||
|
||||
@ -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
|
||||
@ -209,11 +209,11 @@ table.access-table tbody td, table.access-table tbody tr:hover td {
|
||||
|
||||
/* Approval workflow */
|
||||
#admin-menu a.approvalworkflows { background-image: url(../../../images/ticket_go.png); }
|
||||
#users_for_delegate {height: 200px; overflow:auto;}
|
||||
#users_for_delegate label {display: block;}
|
||||
#users_for_delegate { height: 200px; overflow:auto; }
|
||||
#users_for_delegate label { display: block; }
|
||||
tr.workflow.locked a { color: #aaa; }
|
||||
|
||||
.revision_box{
|
||||
.revision_box {
|
||||
padding: 0px 0px 0px 0px;
|
||||
margin-bottom: 10px;
|
||||
background-color:#f6f6f6;
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user