Project

General

Profile

Feature #7554 » fix-private-documents.diff

Preethi Sriram, 2011-11-02 18:58

View differences:

app/models/role.rb (working copy)
25 25
    ['default', :label_issues_visibility_public],
26 26
    ['own', :label_issues_visibility_own]
27 27
  ]
28
  
29
  DOCUMENTS_VISIBILITY_OPTIONS = [
30
    ['all', :label_documents_visibility_all],
31
    ['default', :label_documents_visibility_public],
32
    ['own', :label_documents_visibility_own]
33
  ]
28 34

  
29 35
  named_scope :givable, { :conditions => "builtin = 0", :order => 'position' }
30 36
  named_scope :builtin, lambda { |*args|
......
52 58
  validates_inclusion_of :issues_visibility,
53 59
    :in => ISSUES_VISIBILITY_OPTIONS.collect(&:first),
54 60
    :if => lambda {|role| role.respond_to?(:issues_visibility)}
61
  validates_inclusion_of :documents_visibility,
62
    :in => DOCUMENTS_VISIBILITY_OPTIONS.collect(&:first),
63
    :if => lambda {|role| role.respond_to?(:documents_visibility)}
55 64
  
56 65
  def permissions
57 66
    read_attribute(:permissions) || []
58 67
  end
59
  
68
 
60 69
  def permissions=(perms)
61 70
    perms = perms.collect {|p| p.to_sym unless p.blank? }.compact.uniq if perms
62 71
    write_attribute(:permissions, perms)
app/models/document.rb (working copy)
18 18
class Document < ActiveRecord::Base
19 19
  belongs_to :project
20 20
  belongs_to :category, :class_name => "DocumentCategory", :foreign_key => "category_id"
21
  belongs_to :author, :class_name => 'User', :foreign_key => 'author_id'
22
  belongs_to :assigned_to, :class_name => 'User', :foreign_key => 'assigned_to_id'
21 23
  acts_as_attachable :delete_permission => :manage_documents
22 24

  
23 25
  acts_as_searchable :columns => ['title', "#{table_name}.description"], :include => :project
24 26
  acts_as_event :title => Proc.new {|o| "#{l(:label_document)}: #{o.title}"},
25 27
                :author => Proc.new {|o| (a = o.attachments.find(:first, :order => "#{Attachment.table_name}.created_on ASC")) ? a.author : nil },
26 28
                :url => Proc.new {|o| {:controller => 'documents', :action => 'show', :id => o.id}}
27
  acts_as_activity_provider :find_options => {:include => :project}
29
  acts_as_activity_provider :find_options => {:include => [:project, :author]},
30
                            :author_key => :author_id
28 31

  
29 32
  validates_presence_of :project, :title, :category
30 33
  validates_length_of :title, :maximum => 60
31

  
32
  named_scope :visible, lambda {|*args| { :include => :project,
33
                                          :conditions => Project.allowed_to_condition(args.shift || User.current, :view_documents, *args) } }
34

  
34
  
35
def self.all_visible(visible_role,project,user=User.current) 
36
   if(user.allowed_to?(:view_documents, project))
37
    case visible_role
38
        when 'all'
39
         all  :include => [:attachments, :category]
40
        when 'default'
41
         all  :include => [:attachments, :category], :conditions => ['is_private = 0 or author_id=? or assigned_to_id=?',user.id,user.id]  
42
        when 'own'
43
         all  :include => [:attachments, :category], :conditions => ['author_id=? or assigned_to_id=?',user.id,user.id]   
44
        else
45
         all :include => [:attachments, :category]
46
     end
47
   end
48
 end 
49
  
50
  # Users the document can be assigned to
51
  def assignable_users
52
    users = project.assignable_users
53
    users << author if author
54
    users.uniq.sort
55
  end
56
  
35 57
  def visible?(user=User.current)
36
    !user.nil? && user.allowed_to?(:view_documents, project)
58
   
59
   !user.nil? && user.allowed_to?(:view_documents, project)
37 60
  end
38

  
61
  
39 62
  def after_initialize
40 63
    if new_record?
41 64
      self.category ||= DocumentCategory.default
app/controllers/documents_controller.rb (working copy)
26 26
  helper :attachments
27 27
  
28 28
  def index
29
    
29 30
    @sort_by = %w(category date title author).include?(params[:sort_by]) ? params[:sort_by] : 'category'
30
    documents = @project.documents.find :all, :include => [:attachments, :category]
31
    
32
      sql = "SELECT role_id,documents_visibility"
33
      sql << " FROM #{Member.table_name}"
34
      sql << " INNER JOIN #{MemberRole.table_name} ON #{MemberRole.table_name}.member_id = #{Member.table_name}.id"
35
      sql << " INNER JOIN #{Role.table_name} ON #{Role.table_name}.id = #{MemberRole.table_name}.role_id"
36
      sql << " WHERE"
37
      sql << " #{Member.table_name}.project_id = #{@project.id} AND #{Member.table_name}.user_id = #{User.current.id}"
38
     
39
      
40
      @role = ActiveRecord::Base.connection.select_all(sql)
41
      
42
      @role.each do |row|
43
        @role_visible = row['documents_visibility']
44
      end
45
        
46
     #logger.debug("role visible is #{@role_visible}")                            
47
     
48
    
49
    documents = Document.all_visible @role_visible,@project
50
    
31 51
    case @sort_by
32 52
    when 'date'
33 53
      @grouped = documents.group_by {|d| d.updated_on.to_date }
......
39 59
      @grouped = documents.group_by(&:category)
40 60
    end
41 61
    @document = @project.documents.build
62
    
63
    
64
   
65
    
42 66
    render :layout => false if request.xhr?
43 67
  end
44 68
  
......
47 71
  end
48 72

  
49 73
  def new
50
    @document = @project.documents.build(params[:document])    
74
    @document = @project.documents.build(params[:document])  
75
    @document.author = User.current
51 76
    if request.post? and @document.save	
52 77
      attachments = Attachment.attach_files(@document, params[:attachments])
53 78
      render_attachment_warning_if_needed(@document)
app/views/roles/_form.rhtml (working copy)
6 6
<p><%= f.check_box :assignable %></p>
7 7
<% end %>
8 8
<p><%= f.select :issues_visibility, Role::ISSUES_VISIBILITY_OPTIONS.collect {|v| [l(v.last), v.first]} %></p>
9
<p><%= f.select :documents_visibility, Role::DOCUMENTS_VISIBILITY_OPTIONS.collect {|v| [l(v.last), v.first]} %></p>
9 10
<% if @role.new_record? && @roles.any? %>
10 11
<p><label><%= l(:label_copy_workflow_from) %></label>
11 12
<%= select_tag(:copy_workflow_from, content_tag("option") + options_from_collection_for_select(@roles, :id, :name)) %></p>
app/views/documents/_form.rhtml (working copy)
1 1
<%= error_messages_for 'document' %>
2 2
<div class="box">
3 3
<!--[form:document]-->
4

  
4 5
<p><label for="document_category_id"><%=l(:field_category)%></label>
5 6
<%= select('document', 'category_id', DocumentCategory.all.collect {|c| [c.name, c.id]}) %></p>
6 7

  
8
<p><label for="document_assigned_to_id"><%=l(:field_assigned_to)%></label>
9
<%= select('document', 'assigned_to_id', @document.assignable_users.collect {|c| [c.name, c.id]}) %></p>
10

  
7 11
<p><label for="document_title"><%=l(:field_title)%> <span class="required">*</span></label>
8 12
<%= text_field 'document', 'title', :size => 60 %></p>
9 13

  
10 14
<p><label for="document_description"><%=l(:field_description)%></label>
11 15
<%= text_area 'document', 'description', :cols => 60, :rows => 15, :class => 'wiki-edit' %></p>
16

  
17
<p>
18
 <label class="inline" for="document_is_private"><%=l(:field_is_private)%></label>
19
<%= check_box 'document', 'is_private'%>
20
</p>
12 21
<!--[eoform:document]-->
13 22
</div>
14 23

  
24

  
15 25
<%= wikitoolbar_for 'document_description' %>
config/locales/lt.yml (working copy)
1016 1016
  label_issue_priority_updated: Priority updated
1017 1017
  label_issues_visibility_own: Issues created by or assigned to the user
1018 1018
  field_issues_visibility: Issues visibility
1019
  field_documents_visibility: Documents visibility
1019 1020
  label_issues_visibility_all: All issues
1020 1021
  permission_set_own_issues_private: Set own issues public or private
1021 1022
  field_is_private: Private
1022 1023
  permission_set_issues_private: Set issues public or private
1023 1024
  label_issues_visibility_public: All non private issues
1025
  label_documents_visibility_public: All non private documents
1026
  label_documents_visibility_own: Documents created by or assigned to the user
1027
  label_documents_visibility_all: All Documents
1024 1028
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
1025 1029
  field_commit_logs_encoding: Commit pranešimų koduotė
1026 1030
  field_scm_path_encoding: Path encoding
config/locales/sr-YU.yml (working copy)
956 956
  label_issue_priority_updated: Priority updated
957 957
  label_issues_visibility_own: Issues created by or assigned to the user
958 958
  field_issues_visibility: Issues visibility
959
  field_documents_visibility: Documents visibility
959 960
  label_issues_visibility_all: All issues
960 961
  permission_set_own_issues_private: Set own issues public or private
961 962
  field_is_private: Private
962 963
  permission_set_issues_private: Set issues public or private
963 964
  label_issues_visibility_public: All non private issues
965
  label_documents_visibility_public: All non private documents
966
  label_documents_visibility_own: Documents created by or assigned to the user
967
  label_documents_visibility_all: All Documents
964 968
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
965 969
  field_commit_logs_encoding: Kodiranje izvršnih poruka
966 970
  field_scm_path_encoding: Path encoding
config/locales/ro.yml (working copy)
949 949
  label_issue_priority_updated: Priority updated
950 950
  label_issues_visibility_own: Issues created by or assigned to the user
951 951
  field_issues_visibility: Issues visibility
952
  field_documents_visibility: Documents visibility
952 953
  label_issues_visibility_all: All issues
953 954
  permission_set_own_issues_private: Set own issues public or private
954 955
  field_is_private: Private
955 956
  permission_set_issues_private: Set issues public or private
956 957
  label_issues_visibility_public: All non private issues
958
  label_documents_visibility_public: All non private documents
959
  label_documents_visibility_own: Documents created by or assigned to the user
960
  label_documents_visibility_all: All Documents
957 961
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
958 962
  field_commit_logs_encoding: Codare pentru mesaje
959 963
  field_scm_path_encoding: Path encoding
config/locales/lv.yml (working copy)
951 951
  label_issue_priority_updated: Priority updated
952 952
  label_issues_visibility_own: Issues created by or assigned to the user
953 953
  field_issues_visibility: Issues visibility
954
  field_documents_visibility: Documents visibility
954 955
  label_issues_visibility_all: All issues
955 956
  permission_set_own_issues_private: Set own issues public or private
956 957
  field_is_private: Private
957 958
  permission_set_issues_private: Set issues public or private
958 959
  label_issues_visibility_public: All non private issues
960
  label_documents_visibility_public: All non private documents
961
  label_documents_visibility_own: Documents created by or assigned to the user
962
  label_documents_visibility_all: All Documents
959 963
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
960 964
  field_commit_logs_encoding: Kodēt ziņojumus
961 965
  field_scm_path_encoding: Path encoding
config/locales/zh.yml (working copy)
963 963
  field_is_private: Private
964 964
  permission_set_issues_private: Set issues public or private
965 965
  label_issues_visibility_public: All non private issues
966
  label_documents_visibility_public: All non private documents
967
  label_documents_visibility_own: Documents created by or assigned to the user
968
  label_documents_visibility_all: All Documents
966 969
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
967 970

  
968 971
  field_commit_logs_encoding: 提交注释的编码
config/locales/pt.yml (working copy)
961 961
  label_issue_priority_updated: Priority updated
962 962
  label_issues_visibility_own: Issues created by or assigned to the user
963 963
  field_issues_visibility: Issues visibility
964
  field_documents_visibility: Documents visibility
964 965
  label_issues_visibility_all: All issues
965 966
  permission_set_own_issues_private: Set own issues public or private
966 967
  field_is_private: Private
967 968
  permission_set_issues_private: Set issues public or private
968 969
  label_issues_visibility_public: All non private issues
970
  label_documents_visibility_public: All non private documents
971
  label_documents_visibility_own: Documents created by or assigned to the user
972
  label_documents_visibility_all: All Documents
969 973
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
970 974
  field_commit_logs_encoding: Encoding das mensagens de commit
971 975
  field_scm_path_encoding: Path encoding
config/locales/ca.yml (working copy)
959 959
  label_issue_priority_updated: Priority updated
960 960
  label_issues_visibility_own: Issues created by or assigned to the user
961 961
  field_issues_visibility: Issues visibility
962
  field_documents_visibility: Documents visibility
962 963
  label_issues_visibility_all: All issues
963 964
  permission_set_own_issues_private: Set own issues public or private
964 965
  field_is_private: Private
965 966
  permission_set_issues_private: Set issues public or private
966 967
  label_issues_visibility_public: All non private issues
968
  label_documents_visibility_public: All non private documents
969
  label_documents_visibility_own: Documents created by or assigned to the user
970
  label_documents_visibility_all: All Documents
967 971
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
968 972
  field_commit_logs_encoding: Codificació dels missatges publicats
969 973
  field_scm_path_encoding: Path encoding
config/locales/pt-BR.yml (working copy)
977 977
  label_role_non_member: Não Membro
978 978
  label_issues_visibility_own: Tarefas criadas ou atribuídas ao usuário
979 979
  field_issues_visibility: Visibilidade das tarefas
980
  field_documents_visibility: Documents visibility
980 981
  label_issues_visibility_all: Todas as tarefas
981 982
  permission_set_own_issues_private: Alterar as próprias tarefas para públicas ou privadas
982 983
  field_is_private: Privado
config/locales/tr.yml (working copy)
975 975
  label_issue_priority_updated: Öncelik güncellendi
976 976
  label_issues_visibility_own: Issues created by or assigned to the user
977 977
  field_issues_visibility: İşlerin görünürlüğü
978
  field_documents_visibility: Documents visibility
978 979
  label_issues_visibility_all: Tüm işler
979 980
  permission_set_own_issues_private: Set own issues public or private
980 981
  field_is_private: Özel
config/locales/ru.yml (working copy)
1069 1069
  label_issue_priority_updated: Приоритет обновлен
1070 1070
  label_issues_visibility_own: Задачи созданные или назначенные пользователю
1071 1071
  field_issues_visibility: Видимость задач
1072
  field_documents_visibility: Documents visibility
1072 1073
  label_issues_visibility_all: Все задачи
1073 1074
  permission_set_own_issues_private: Устанавливать видимость (общая/частная) для собственных задач
1074 1075
  field_is_private: Частная
config/locales/en-GB.yml (working copy)
959 959
  label_issue_priority_updated: Priority updated
960 960
  label_issues_visibility_own: Issues created by or assigned to the user
961 961
  field_issues_visibility: Issues visibility
962
  field_documents_visibility: Documents visibility
962 963
  label_issues_visibility_all: All issues
963 964
  permission_set_own_issues_private: Set own issues public or private
964 965
  field_is_private: Private
965 966
  permission_set_issues_private: Set issues public or private
966 967
  label_issues_visibility_public: All non private issues
968
  label_documents_visibility_public: All non private documents
969
  label_documents_visibility_own: Documents created by or assigned to the user
970
  label_documents_visibility_all: All Documents
967 971
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
968 972
  field_commit_logs_encoding: Commit messages encoding
969 973
  field_scm_path_encoding: Path encoding
config/locales/id.yml (working copy)
964 964
  label_issue_priority_updated: Priority updated
965 965
  label_issues_visibility_own: Issues created by or assigned to the user
966 966
  field_issues_visibility: Issues visibility
967
  field_documents_visibility: Documents visibility
967 968
  label_issues_visibility_all: All issues
968 969
  permission_set_own_issues_private: Set own issues public or private
969 970
  field_is_private: Private
970 971
  permission_set_issues_private: Set issues public or private
971 972
  label_issues_visibility_public: All non private issues
973
  label_documents_visibility_public: All non private documents
974
  label_documents_visibility_own: Documents created by or assigned to the user
975
  label_documents_visibility_all: All Documents
972 976
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
973 977
  field_commit_logs_encoding: Commit messages encoding
974 978
  field_scm_path_encoding: Path encoding
config/locales/el.yml (working copy)
956 956
  label_issue_priority_updated: Priority updated
957 957
  label_issues_visibility_own: Issues created by or assigned to the user
958 958
  field_issues_visibility: Issues visibility
959
  field_documents_visibility: Documents visibility
959 960
  label_issues_visibility_all: All issues
960 961
  permission_set_own_issues_private: Set own issues public or private
961 962
  field_is_private: Private
962 963
  permission_set_issues_private: Set issues public or private
963 964
  label_issues_visibility_public: All non private issues
965
  label_documents_visibility_public: All non private documents
966
  label_documents_visibility_own: Documents created by or assigned to the user
967
  label_documents_visibility_all: All Documents
964 968
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
965 969
  field_commit_logs_encoding: Κωδικοποίηση μηνυμάτων commit
966 970
  field_scm_path_encoding: Path encoding
config/locales/en.yml (working copy)
308 308
  field_visible: Visible
309 309
  field_warn_on_leaving_unsaved: "Warn me when leaving a page with unsaved text"
310 310
  field_issues_visibility: Issues visibility
311
  field_documents_visibility: Documents visibility
311 312
  field_is_private: Private
312 313
  field_commit_logs_encoding: Commit messages encoding
313 314
  field_scm_path_encoding: Path encoding
......
819 820
  label_issues_visibility_all: All issues
820 821
  label_issues_visibility_public: All non private issues
821 822
  label_issues_visibility_own: Issues created by or assigned to the user
823
  label_documents_visibility_public: All non private documents
824
  label_documents_visibility_own: Documents created by or assigned to the user
825
  label_documents_visibility_all: All Documents
822 826
  label_git_report_last_commit: Report last commit for files and directories
823 827

  
824 828
  button_login: Login
config/locales/gl.yml (working copy)
968 968
  label_issue_priority_updated: Priority updated
969 969
  label_issues_visibility_own: Issues created by or assigned to the user
970 970
  field_issues_visibility: Issues visibility
971
  field_documents_visibility: Documents visibility
971 972
  label_issues_visibility_all: All issues
972 973
  permission_set_own_issues_private: Set own issues public or private
973 974
  field_is_private: Private
974 975
  permission_set_issues_private: Set issues public or private
975 976
  label_issues_visibility_public: All non private issues
977
  label_documents_visibility_public: All non private documents
978
  label_documents_visibility_own: Documents created by or assigned to the user
979
  label_documents_visibility_all: All Documents
976 980
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
977 981
  field_commit_logs_encoding: Codificación das mensaxes de commit
978 982
  field_scm_path_encoding: Path encoding
config/locales/cs.yml (working copy)
960 960
  label_issue_priority_updated: Priority updated
961 961
  label_issues_visibility_own: Issues created by or assigned to the user
962 962
  field_issues_visibility: Issues visibility
963
  field_documents_visibility: Documents visibility
963 964
  label_issues_visibility_all: All issues
964 965
  permission_set_own_issues_private: Set own issues public or private
965 966
  field_is_private: Private
966 967
  permission_set_issues_private: Set issues public or private
967 968
  label_issues_visibility_public: All non private issues
969
  label_documents_visibility_public: All non private documents
970
  label_documents_visibility_own: Documents created by or assigned to the user
971
  label_documents_visibility_all: All Documents
968 972
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
969 973
  field_commit_logs_encoding: Kódování zpráv při commitu
970 974
  field_scm_path_encoding: Path encoding
config/locales/es.yml (working copy)
993 993
  label_issue_priority_updated: Prioridad actualizada
994 994
  label_issues_visibility_own: Peticiones creadas por el usuario o asignadas a él
995 995
  field_issues_visibility: Visibilidad de las peticiones
996
  field_documents_visibility: Documents visibility
996 997
  label_issues_visibility_all: Todas las peticiones
997 998
  permission_set_own_issues_private: Poner las peticiones propias como públicas o privadas
998 999
  field_is_private: Privada
config/locales/mk.yml (working copy)
956 956
  label_issue_priority_updated: Priority updated
957 957
  label_issues_visibility_own: Issues created by or assigned to the user
958 958
  field_issues_visibility: Issues visibility
959
  field_documents_visibility: Documents visibility
959 960
  label_issues_visibility_all: All issues
960 961
  permission_set_own_issues_private: Set own issues public or private
961 962
  field_is_private: Private
962 963
  permission_set_issues_private: Set issues public or private
963 964
  label_issues_visibility_public: All non private issues
965
  label_documents_visibility_public: All non private documents
966
  label_documents_visibility_own: Documents created by or assigned to the user
967
  label_documents_visibility_all: All Documents
964 968
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
965 969
  field_commit_logs_encoding: Commit messages encoding
966 970
  field_scm_path_encoding: Path encoding
config/locales/eu.yml (working copy)
960 960
  label_issue_priority_updated: Lehentasuna eguneratuta
961 961
  label_issues_visibility_own: Erabiltzaileak sortu edo esleituta dituen zereginak
962 962
  field_issues_visibility: Zeregin ikusgarritasuna
963
  field_documents_visibility: Documents visibility
963 964
  label_issues_visibility_all: Zeregin guztiak
964 965
  permission_set_own_issues_private: Nork bere zereginak publiko edo pribatu jarri
965 966
  field_is_private: Pribatu
config/locales/ko.yml (working copy)
1008 1008
  label_issue_priority_updated: Priority updated
1009 1009
  label_issues_visibility_own: Issues created by or assigned to the user
1010 1010
  field_issues_visibility: Issues visibility
1011
  field_documents_visibility: Documents visibility
1011 1012
  label_issues_visibility_all: All issues
1012 1013
  permission_set_own_issues_private: Set own issues public or private
1013 1014
  field_is_private: Private
1014 1015
  permission_set_issues_private: Set issues public or private
1015 1016
  label_issues_visibility_public: All non private issues
1017
  label_documents_visibility_public: All non private documents
1018
  label_documents_visibility_own: Documents created by or assigned to the user
1019
  label_documents_visibility_all: All Documents
1016 1020
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
1017 1021
  field_commit_logs_encoding: 제출(commit) 기록 인코딩
1018 1022
  field_scm_path_encoding: Path encoding
config/locales/mn.yml (working copy)
957 957
  label_issue_priority_updated: Priority updated
958 958
  label_issues_visibility_own: Issues created by or assigned to the user
959 959
  field_issues_visibility: Issues visibility
960
  field_documents_visibility: Documents visibility
960 961
  label_issues_visibility_all: All issues
961 962
  permission_set_own_issues_private: Set own issues public or private
962 963
  field_is_private: Private
963 964
  permission_set_issues_private: Set issues public or private
964 965
  label_issues_visibility_public: All non private issues
966
  label_documents_visibility_public: All non private documents
967
  label_documents_visibility_own: Documents created by or assigned to the user
968
  label_documents_visibility_all: All Documents
965 969
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
966 970
  field_commit_logs_encoding: Коммит хийх үед харуулах текстүүдийн энкодинг
967 971
  field_scm_path_encoding: Path encoding
config/locales/it.yml (working copy)
957 957
  label_issue_priority_updated: Priorità aggiornata
958 958
  label_issues_visibility_own: Segnalazioni create o assegnate all'utente
959 959
  field_issues_visibility: Visibilità segnalazioni
960
  field_documents_visibility: Documents visibility
960 961
  label_issues_visibility_all: Tutte le segnalazioni
961 962
  permission_set_own_issues_private: Imposta le proprie segnalazioni pubbliche o private
962 963
  field_is_private: Privato
config/locales/sk.yml (working copy)
951 951
  label_issue_priority_updated: Priority updated
952 952
  label_issues_visibility_own: Issues created by or assigned to the user
953 953
  field_issues_visibility: Issues visibility
954
  field_documents_visibility: Documents visibility
954 955
  label_issues_visibility_all: All issues
955 956
  permission_set_own_issues_private: Set own issues public or private
956 957
  field_is_private: Private
957 958
  permission_set_issues_private: Set issues public or private
958 959
  label_issues_visibility_public: All non private issues
960
  label_documents_visibility_public: All non private documents
961
  label_documents_visibility_own: Documents created by or assigned to the user
962
  label_documents_visibility_all: All Documents
959 963
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
960 964
  field_commit_logs_encoding: Kódovanie prenášaných správ
961 965
  field_scm_path_encoding: Path encoding
config/locales/sl.yml (working copy)
952 952
  label_issue_priority_updated: Priority updated
953 953
  label_issues_visibility_own: Issues created by or assigned to the user
954 954
  field_issues_visibility: Issues visibility
955
  field_documents_visibility: Documents visibility
955 956
  label_issues_visibility_all: All issues
956 957
  permission_set_own_issues_private: Set own issues public or private
957 958
  field_is_private: Private
958 959
  permission_set_issues_private: Set issues public or private
959 960
  label_issues_visibility_public: All non private issues
961
  label_documents_visibility_public: All non private documents
962
  label_documents_visibility_own: Documents created by or assigned to the user
963
  label_documents_visibility_all: All Documents
960 964
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
961 965
  field_commit_logs_encoding: Kodiranje sporočil ob predaji
962 966
  field_scm_path_encoding: Path encoding
config/locales/uk.yml (working copy)
952 952
  label_issue_priority_updated: Priority updated
953 953
  label_issues_visibility_own: Issues created by or assigned to the user
954 954
  field_issues_visibility: Issues visibility
955
  field_documents_visibility: Documents visibility
955 956
  label_issues_visibility_all: All issues
956 957
  permission_set_own_issues_private: Set own issues public or private
957 958
  field_is_private: Private
958 959
  permission_set_issues_private: Set issues public or private
959 960
  label_issues_visibility_public: All non private issues
961
  label_documents_visibility_public: All non private documents
962
  label_documents_visibility_own: Documents created by or assigned to the user
963
  label_documents_visibility_all: All Documents
960 964
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
961 965
  field_commit_logs_encoding: Commit messages encoding
962 966
  field_scm_path_encoding: Path encoding
config/locales/sr.yml (working copy)
957 957
  label_issue_priority_updated: Priority updated
958 958
  label_issues_visibility_own: Issues created by or assigned to the user
959 959
  field_issues_visibility: Issues visibility
960
  field_documents_visibility: Documents visibility
960 961
  label_issues_visibility_all: All issues
961 962
  permission_set_own_issues_private: Set own issues public or private
962 963
  field_is_private: Private
963 964
  permission_set_issues_private: Set issues public or private
964 965
  label_issues_visibility_public: All non private issues
966
  label_documents_visibility_public: All non private documents
967
  label_documents_visibility_own: Documents created by or assigned to the user
968
  label_documents_visibility_all: All Documents
965 969
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
966 970
  field_commit_logs_encoding: Кодирање извршних порука
967 971
  field_scm_path_encoding: Path encoding
config/locales/da.yml (working copy)
973 973
  label_issue_priority_updated: Priority updated
974 974
  label_issues_visibility_own: Issues created by or assigned to the user
975 975
  field_issues_visibility: Issues visibility
976
  field_documents_visibility: Documents visibility
976 977
  label_issues_visibility_all: All issues
977 978
  permission_set_own_issues_private: Set own issues public or private
978 979
  field_is_private: Private
979 980
  permission_set_issues_private: Set issues public or private
980 981
  label_issues_visibility_public: All non private issues
982
  label_documents_visibility_public: All non private documents
983
  label_documents_visibility_own: Documents created by or assigned to the user
984
  label_documents_visibility_all: All Documents
981 985
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
982 986
  field_commit_logs_encoding: Kodning af Commit beskeder
983 987
  field_scm_path_encoding: Path encoding
config/locales/fa.yml (working copy)
959 959
  label_issue_priority_updated: برتری بروز شد
960 960
  label_issues_visibility_own: Issues created by or assigned to the user
961 961
  field_issues_visibility: Issues visibility
962
  field_documents_visibility: Documents visibility
962 963
  label_issues_visibility_all: All issues
963 964
  permission_set_own_issues_private: Set own issues public or private
964 965
  field_is_private: Private
965 966
  permission_set_issues_private: Set issues public or private
966 967
  label_issues_visibility_public: All non private issues
968
  label_documents_visibility_public: All non private documents
969
  label_documents_visibility_own: Documents created by or assigned to the user
970
  label_documents_visibility_all: All Documents
967 971
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
968 972
  field_commit_logs_encoding: کدگذاری پیام‌های انباره
969 973
  field_scm_path_encoding: Path encoding
config/locales/sv.yml (working copy)
350 350
  field_visible: Synlig
351 351
  field_warn_on_leaving_unsaved: Varna om jag lämnar en sida med osparad text
352 352
  field_issues_visibility: Ärendesynlighet
353
  field_documents_visibility: Documents visibility
353 354
  field_is_private: Privat
354 355
  field_commit_logs_encoding: Teckenuppsättning för commit-meddelanden
355 356
  field_scm_path_encoding: Sökvägskodning
config/locales/de.yml (working copy)
974 974
  label_issue_priority_updated: Priorität aktualisiert
975 975
  label_issues_visibility_own: Tickets die folgender User erstellt hat oder die ihm zugewiesen sind
976 976
  field_issues_visibility: Ticket Sichtbarkeit
977
  field_documents_visibility: Documents visibility
977 978
  label_issues_visibility_all: Alle Tickets
978 979
  permission_set_own_issues_private: Eigene Tickets privat oder öffentlich markieren
979 980
  field_is_private: Privat
config/locales/bg.yml (working copy)
308 308
  field_visible: Видим
309 309
  field_warn_on_leaving_unsaved: Предупреди ме, когато напускам страница с незаписано съдържание
310 310
  field_issues_visibility: Видимост на задачите
311
  field_documents_visibility: Documents visibility
311 312
  field_is_private: Лична
312 313
  field_commit_logs_encoding: Кодова таблица на съобщенията при поверяване
313 314
  field_scm_path_encoding: Кодова таблица на пътищата (path)
config/locales/ja.yml (working copy)
1000 1000
  label_issue_priority_updated: 優先度が更新されました
1001 1001
  label_issues_visibility_own: 作成者か担当者であるチケット
1002 1002
  field_issues_visibility: 表示できるチケット
1003
  field_documents_visibility: Documents visibility
1003 1004
  label_issues_visibility_all: すべてのチケット
1004 1005
  permission_set_own_issues_private: 自分のチケットをプライベートに設定
1005 1006
  field_is_private: プライベート
config/locales/he.yml (working copy)
961 961
  label_issue_priority_updated: Priority updated
962 962
  label_issues_visibility_own: Issues created by or assigned to the user
963 963
  field_issues_visibility: Issues visibility
964
  field_documents_visibility: Documents visibility
964 965
  label_issues_visibility_all: All issues
965 966
  permission_set_own_issues_private: Set own issues public or private
966 967
  field_is_private: Private
967 968
  permission_set_issues_private: Set issues public or private
968 969
  label_issues_visibility_public: All non private issues
970
  label_documents_visibility_public: All non private documents
971
  label_documents_visibility_own: Documents created by or assigned to the user
972
  label_documents_visibility_all: All Documents
969 973
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
970 974
  field_commit_logs_encoding: קידוד הודעות הפקדה
971 975
  field_scm_path_encoding: Path encoding
config/locales/fi.yml (working copy)
977 977
  label_issue_priority_updated: Priority updated
978 978
  label_issues_visibility_own: Issues created by or assigned to the user
979 979
  field_issues_visibility: Issues visibility
980
  field_documents_visibility: Documents visibility
980 981
  label_issues_visibility_all: All issues
981 982
  permission_set_own_issues_private: Set own issues public or private
982 983
  field_is_private: Private
983 984
  permission_set_issues_private: Set issues public or private
984 985
  label_issues_visibility_public: All non private issues
986
  label_documents_visibility_public: All non private documents
987
  label_documents_visibility_own: Documents created by or assigned to the user
988
  label_documents_visibility_all: All Documents
985 989
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
986 990
  field_commit_logs_encoding: Tee viestien koodaus
987 991
  field_scm_path_encoding: Path encoding
config/locales/bs.yml (working copy)
970 970
  label_issue_priority_updated: Priority updated
971 971
  label_issues_visibility_own: Issues created by or assigned to the user
972 972
  field_issues_visibility: Issues visibility
973
  field_documents_visibility: Documents visibility
973 974
  label_issues_visibility_all: All issues
974 975
  permission_set_own_issues_private: Set own issues public or private
975 976
  field_is_private: Private
976 977
  permission_set_issues_private: Set issues public or private
977 978
  label_issues_visibility_public: All non private issues
979
  label_documents_visibility_public: All non private documents
980
  label_documents_visibility_own: Documents created by or assigned to the user
981
  label_documents_visibility_all: All Documents
978 982
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
979 983
  field_commit_logs_encoding: 'Enkodiranje "commit" poruka'
980 984
  field_scm_path_encoding: Path encoding
config/locales/fr.yml (working copy)
312 312
  field_visible: Visible
313 313
  field_warn_on_leaving_unsaved: "M'avertir lorsque je quitte une page contenant du texte non sauvegardé"
314 314
  field_issues_visibility: Visibilité des demandes
315
  field_documents_visibility: Documents visibility
315 316
  field_is_private: Privée
316 317
  field_commit_logs_encoding: Encodage des messages de commit
317 318

  
config/locales/nl.yml (working copy)
938 938
  label_issue_priority_updated: Priority updated
939 939
  label_issues_visibility_own: Issues created by or assigned to the user
940 940
  field_issues_visibility: Issues visibility
941
  field_documents_visibility: Documents visibility
941 942
  label_issues_visibility_all: All issues
942 943
  permission_set_own_issues_private: Set own issues public or private
943 944
  field_is_private: Private
944 945
  permission_set_issues_private: Set issues public or private
945 946
  label_issues_visibility_public: All non private issues
947
  label_documents_visibility_public: All non private documents
948
  label_documents_visibility_own: Documents created by or assigned to the user
949
  label_documents_visibility_all: All Documents
946 950
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
947 951
  field_commit_logs_encoding: Encodering van commit berichten
948 952
  field_scm_path_encoding: Path encoding
config/locales/hr.yml (working copy)
963 963
  label_issue_priority_updated: Priority updated
964 964
  label_issues_visibility_own: Issues created by or assigned to the user
965 965
  field_issues_visibility: Issues visibility
966
  field_documents_visibility: Documents visibility
966 967
  label_issues_visibility_all: All issues
967 968
  permission_set_own_issues_private: Set own issues public or private
968 969
  field_is_private: Private
969 970
  permission_set_issues_private: Set issues public or private
970 971
  label_issues_visibility_public: All non private issues
972
  label_documents_visibility_public: All non private documents
973
  label_documents_visibility_own: Documents created by or assigned to the user
974
  label_documents_visibility_all: All Documents
971 975
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
972 976
  field_commit_logs_encoding: Commit messages encoding
973 977
  field_scm_path_encoding: Path encoding
config/locales/pl.yml (working copy)
973 973
  label_issue_priority_updated: Priority updated
974 974
  label_issues_visibility_own: Issues created by or assigned to the user
975 975
  field_issues_visibility: Issues visibility
976
  field_documents_visibility: Documents visibility
976 977
  label_issues_visibility_all: All issues
977 978
  permission_set_own_issues_private: Set own issues public or private
978 979
  field_is_private: Private
979 980
  permission_set_issues_private: Set issues public or private
980 981
  label_issues_visibility_public: All non private issues
982
  label_documents_visibility_public: All non private documents
983
  label_documents_visibility_own: Documents created by or assigned to the user
984
  label_documents_visibility_all: All Documents
981 985
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
982 986
  field_commit_logs_encoding: Kodowanie komentarzy zatwierdzeń
983 987
  field_scm_path_encoding: Path encoding
config/locales/th.yml (working copy)
953 953
  label_issue_priority_updated: Priority updated
954 954
  label_issues_visibility_own: Issues created by or assigned to the user
955 955
  field_issues_visibility: Issues visibility
956
  field_documents_visibility: Documents visibility
956 957
  label_issues_visibility_all: All issues
957 958
  permission_set_own_issues_private: Set own issues public or private
958 959
  field_is_private: Private
959 960
  permission_set_issues_private: Set issues public or private
960 961
  label_issues_visibility_public: All non private issues
962
  label_documents_visibility_public: All non private documents
963
  label_documents_visibility_own: Documents created by or assigned to the user
964
  label_documents_visibility_all: All Documents
961 965
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
962 966
  field_commit_logs_encoding: Commit messages encoding
963 967
  field_scm_path_encoding: Path encoding
config/locales/no.yml (working copy)
943 943
  label_issue_priority_updated: Priority updated
944 944
  label_issues_visibility_own: Issues created by or assigned to the user
945 945
  field_issues_visibility: Issues visibility
946
  field_documents_visibility: Documents visibility
946 947
  label_issues_visibility_all: All issues
947 948
  permission_set_own_issues_private: Set own issues public or private
948 949
  field_is_private: Private
949 950
  permission_set_issues_private: Set issues public or private
950 951
  label_issues_visibility_public: All non private issues
952
  label_documents_visibility_public: All non private documents
953
  label_documents_visibility_own: Documents created by or assigned to the user
954
  label_documents_visibility_all: All Documents
951 955
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
952 956
  field_commit_logs_encoding: Tegnkoding for innsendingsmeldinger
953 957
  field_scm_path_encoding: Path encoding
config/locales/hu.yml (working copy)
975 975
  label_issue_priority_updated: Prioritás módosítva
976 976
  label_issues_visibility_own: A felhasználó által létrehozott vagy hozzárendelt feladatok
977 977
  field_issues_visibility: Feladatok láthatósága
978
  field_documents_visibility: Documents visibility
978 979
  label_issues_visibility_all: Minden feladat
979 980
  permission_set_own_issues_private: Saját feladatok beállítása nyilvánosra vagy privátra
980 981
  field_is_private: Privát
config/locales/vi.yml (working copy)
1007 1007
  label_issue_priority_updated: Priority updated
1008 1008
  label_issues_visibility_own: Issues created by or assigned to the user
1009 1009
  field_issues_visibility: Issues visibility
1010
  field_documents_visibility: Documents visibility
1010 1011
  label_issues_visibility_all: All issues
1011 1012
  permission_set_own_issues_private: Set own issues public or private
1012 1013
  field_is_private: Private
1013 1014
  permission_set_issues_private: Set issues public or private
1014 1015
  label_issues_visibility_public: All non private issues
1016
  label_documents_visibility_public: All non private documents
1017
  label_documents_visibility_own: Documents created by or assigned to the user
1018
  label_documents_visibility_all: All Documents
1015 1019
  text_issues_destroy_descendants_confirmation: This will also delete %{count} subtask(s).
1016 1020
  field_commit_logs_encoding: Commit messages encoding
1017 1021
  field_scm_path_encoding: Path encoding
1018 1022

  
(6-6/6)