Office URI Scheme for direct editing of MS Office files #823
This commit is contained in:
parent
a573e398d7
commit
c68efb5e92
@ -180,7 +180,7 @@ class DmsfFolder < ActiveRecord::Base
|
||||
def dmsf_path_str
|
||||
path = dmsf_path
|
||||
string_path = path.map { |element| element.title }
|
||||
string_path.join('/')
|
||||
File.join string_path
|
||||
end
|
||||
|
||||
def notify?
|
||||
|
||||
@ -39,9 +39,9 @@
|
||||
<% if @file %>
|
||||
<li>
|
||||
<% if @file.last_revision && @file.last_revision.protocol %>
|
||||
<% url = "#{@file.last_revision.protocol}:ofe|u|#{Setting.protocol.strip}://#{Setting.host_name.strip}/dmsf/webdav/#{Addressable::URI.escape(@file.project.identifier)}/" %>
|
||||
<% url = "#{@file.last_revision.protocol}:ofe|u|#{Setting.protocol.strip}://#{Setting.host_name.strip}/dmsf/webdav/#{Addressable::URI.escape(RedmineDmsf::Webdav::ProjectResource.create_project_name(@file.project))}/" %>
|
||||
<% if @file.dmsf_folder %>
|
||||
<% url << @file.dmsf_folder.dmsf_path_str %>
|
||||
<% url << "#{@file.dmsf_folder.dmsf_path_str}/" %>
|
||||
<% end %>
|
||||
<% url << @file.name %>
|
||||
<% end %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user