From 6be21b02a5f6c548df09189fb100dccadd1bf6a8 Mon Sep 17 00:00:00 2001
From: "vit.jonas@gmail.com"
- <%=label_tag("", (revision.source_revision.nil? ? l(:label_created) : l(:label_changed)) + ":")%>
- <%= l(:info_changed_by_user, :changed => revision.updated_at.strftime("%Y-%m-%d %H:%M:%S"), :user => h(revision.user)) %>
-
- <%= label_tag("", l(:label_title) + ":") %>
- <%= h(revision.title) %>
-
- <%= label_tag("", l(:label_filename) + ":") %>
- <%= h(revision.name) %>
-
- <%= label_tag("", l(:label_description) + ":") %>
-
+ <%=label_tag("", (revision.source_revision.nil? ? l(:label_created) : l(:label_changed)) + ":")%>
+ <%= l(:info_changed_by_user, :changed => revision.updated_at.strftime("%Y-%m-%d %H:%M:%S"), :user => h(revision.user)) %>
+
- <%= label_tag("", l(:label_version) + ":") %>
- <%= revision.major_version %>.<%= revision.minor_version %>
-
- <%= label_tag("", l(:label_workflow) + ":") %>
- <%= case revision.workflow
- when 1 then l(:option_workflow_waiting_for_approval)
- when 2 then l(:option_workflow_approved)
- else l(:option_workflow_none)
- end %>
+ <%= label_tag("", l(:label_title) + ":") %>
+ <%= h(revision.title) %>
- <%= label_tag("", l(:label_mime) + ":") %>
- <%= h(revision.mime_type) %>
-
- <%= label_tag("", l(:label_size) + ":") %>
- <%= number_to_human_size(revision.size) %>
+ <%= label_tag("", l(:label_filename) + ":") %>
+ <%= h(revision.name) %>
- <%= label_tag("", l(:label_comment) + ":") %>
- <%= h(revision.comment) %>
+
+ <%= label_tag("", l(:label_description) + ":") %>
+
+ <%= label_tag("", l(:label_version) + ":") %>
+ <%= revision.major_version %>.<%= revision.minor_version %>
+ <%= label_tag("", l(:label_workflow) + ":") %>
+ <%= case revision.workflow
+ when 1 then l(:option_workflow_waiting_for_approval)
+ when 2 then l(:option_workflow_approved)
+ else l(:option_workflow_none)
+ end %>
+
+ <%= label_tag("", l(:label_mime) + ":") %>
+ <%= h(revision.mime_type) %>
+
+ <%= label_tag("", l(:label_size) + ":") %>
+ <%= number_to_human_size(revision.size) %>
+
+ <%= label_tag("", l(:label_comment) + ":") %>
+ <%= h(revision.comment) %>
+
-
+
+ <%=content_tag(:label, l(:label_default_notifications) + ":") %>
+ <%=select_tag("settings[dmsf_default_notifications]",
+ options_for_select([
+ [l(:select_option_deactivated), nil],
+ [l(:select_option_activated), "1"]],
+ :selected => @settings["dmsf_default_notifications"])) %>
+ (<%=l(:label_default)%>: <%=l(:select_option_deactivated)%>)
+
<%=content_tag(:label, l(:label_index_database) + ":") %>
<%=text_field_tag 'settings[dmsf_index_database]', @settings['dmsf_index_database'], :size=>50 %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index c7de9913..df7ad7dc 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -106,7 +106,6 @@ en:
:option_version_minor: "Minor"
:option_version_major: "Major"
:label_new_content: "New content"
-
:label_maximum_files_upload: "Maximum files upload"
:note_maximum_number_of_files_uploaded: "Limits maximum number of files uploaded at once. 0 means unlimited."
:label_maximum_files_download: "Maximum files download"
@@ -125,4 +124,6 @@ en:
:note_stem_some: "Search for stemmed forms of terms except for those which start with a capital letter, or are followed by certain characters, or are used with operators which need positional information. Stemmed terms are prefixed with 'Z'."
:note_stem_all: "Search for stemmed forms of all words (note: no 'Z' prefix is added)."
:note_stemming_applied: "Note that the stemming algorithm is only applied to words in probabilistic fields - boolean filter terms are never stemmed."
+
+ :label_default_notifications: "File default notifications"
\ No newline at end of file