Project

General

Profile

Patch #257 » redmine-autocreate-repository.patch

Thomas Kjosmoen, 2008-02-03 11:02

View differences:

app/controllers/queries_controller.rb (working copy)
31 31
    @query.project = @project
32 32
    @query.user = User.current
33 33
    @query.is_public = false unless current_role.allowed_to?(:manage_public_queries)
34
    @query.autocreate_repository = false unless current_role.allowed_to?(:manage_public_queries)
34 35
    @query.column_names = nil if params[:default_columns]
35 36
    
36 37
    params[:fields].each do |field|
......
53 54
      end if params[:fields]
54 55
      @query.attributes = params[:query]
55 56
      @query.is_public = false unless current_role.allowed_to?(:manage_public_queries)
57
      @query.autocreate_repository = false unless current_role.allowed_to?(:manage_public_queries)
56 58
      @query.column_names = nil if params[:default_columns]
57 59
      
58 60
      if @query.save
app/views/admin/projects.rhtml (working copy)
18 18
	<%= sort_header_tag('name', :caption => l(:label_project)) %>
19 19
	<th><%=l(:field_description)%></th>
20 20
	<th><%=l(:field_is_public)%></th>
21
	<th><%=l(:field_autocreate_repository)%></th>
21 22
	<th><%=l(:label_subproject_plural)%></th>
22 23
	<%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
23 24
    <th></th>
......
29 30
	<td><%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %>
30 31
	<td><%= textilizable project.short_description, :project => project %>
31 32
	<td align="center"><%= image_tag 'true.png' if project.is_public? %>
33
	<td align="center"><%= image_tag 'true.png' if project.autocreate_repository? %>
32 34
	<td align="center"><%= project.children.size %>
33 35
	<td align="center"><%= format_date(project.created_on) %>
34 36
  <td align="center" style="width:10%">
app/views/projects/_form.rhtml (working copy)
15 15
<% end %></p>
16 16
<p><%= f.text_field :homepage, :size => 40 %></p>
17 17
<p><%= f.check_box :is_public %></p>
18
<p><%= f.check_box :autocreate_repository %></p>
18 19
<%= wikitoolbar_for 'project_description' %>
19 20

  
20 21
<% for @custom_value in @custom_values %>
app/views/queries/_form.rhtml (working copy)
11 11
  <%= check_box 'query', 'is_public' %></p>
12 12
<% end %>
13 13

  
14
<% if current_role.allowed_to?(:manage_public_queries) %>
15
  <p><label for="query_autocreate_repository"><%=l(:field_autocreate_repository)%></label>
16
  <%= check_box 'query', 'autocreate_repository' %></p>
17
<% end %>
18

  
14 19
<p><label for="query_default_columns"><%=l(:label_default_columns)%></label>
15 20
<%= check_box_tag 'default_columns', 1, @query.has_default_columns?, :id => 'query_default_columns',
16 21
      :onclick => 'if (this.checked) {Element.hide("columns")} else {Element.show("columns")}' %></p>
lang/lt.yml (working copy)
129 129
field_role: Vaidmuo 
130 130
field_homepage: Pagrindinis puslapis 
131 131
field_is_public: Viešas 
132
field_autocreate_repository: Create repository
132 133
field_parent: Yra subprojektas
133 134
field_is_in_chlog: Svarstomos problemos rodomos pokyčių žurnale 
134 135
field_is_in_roadmap: Svarstomos problemos rodomos veiklos grafike 
lang/ro.yml (working copy)
122 122
field_role: Rol
123 123
field_homepage: Pagina principala
124 124
field_is_public: Public
125
field_autocreate_repository: Create repository
125 126
field_parent: Subproiect al
126 127
field_is_in_chlog: Tichetele sunt vizibile in changelog
127 128
field_is_in_roadmap: Tichetele sunt vizibile in roadmap
lang/zh.yml (working copy)
125 125
field_role: 角色
126 126
field_homepage: 主页
127 127
field_is_public: 公开
128
field_autocreate_repository: Create repository
128 129
field_parent: 上级项目
129 130
field_is_in_chlog: 在更新日志中显示任务
130 131
field_is_in_roadmap: 在路线图中显示任务
lang/pt.yml (working copy)
122 122
field_role: Regra
123 123
field_homepage: Página inicial
124 124
field_is_public: Público
125
field_autocreate_repository: Create repository
125 126
field_parent: Sub-projeto de
126 127
field_is_in_chlog: Tarefas mostradas no changelog
127 128
field_is_in_roadmap: Tarefas mostradas no roadmap
lang/pt-br.yml (working copy)
122 122
field_role: Regra
123 123
field_homepage: Pagina inicial
124 124
field_is_public: Publico
125
field_autocreate_repository: Create repository
125 126
field_parent: Sub-projeto de
126 127
field_is_in_chlog: Tarefas mostradas no changelog
127 128
field_is_in_roadmap: Tarefas mostradas no roadmap
lang/sr.yml (working copy)
126 126
field_role: Uloga
127 127
field_homepage: Homepage
128 128
field_is_public: Javni
129
field_autocreate_repository: Create repository
129 130
field_parent: Podprojekat od
130 131
field_is_in_chlog: Kartice se prikazuju u changelog-u
131 132
field_is_in_roadmap: Kartice se prikazuju u roadmap-u
lang/ru.yml (working copy)
131 131
field_role: Роль
132 132
field_homepage: Стартовая страница
133 133
field_is_public: Публичный
134
field_autocreate_repository: Create repository
134 135
field_parent: Родительский проект 
135 136
field_is_in_chlog: Задачи, отображаемые в журнале изменений
136 137
field_is_in_roadmap: Задачи, отображаемые в оперативном плане
lang/de.yml (working copy)
122 122
field_role: Rolle
123 123
field_homepage: Startseite
124 124
field_is_public: Öffentlich
125
field_autocreate_repository: Repository automatisch erstellen
125 126
field_parent: Unterprojekt von
126 127
field_is_in_chlog: Ansicht im Change-Log
127 128
field_is_in_roadmap: Ansicht in der Roadmap
lang/bg.yml (working copy)
122 122
field_role: Роля
123 123
field_homepage: Начална страница
124 124
field_is_public: Публичен
125
field_autocreate_repository: Create repository
125 126
field_parent: Подпроект на
126 127
field_is_in_chlog: Да се вижда ли в Изменения
127 128
field_is_in_roadmap: Да се вижда ли в Пътна карта
lang/sv.yml (working copy)
122 122
field_role: Roll
123 123
field_homepage: Hemsida
124 124
field_is_public: Offentlig
125
field_autocreate_repository: Create repository
125 126
field_parent: Delprojekt av
126 127
field_is_in_chlog: Brister visade i ändringslogg
127 128
field_is_in_roadmap: Bsiter visade i roadmap
lang/ja.yml (working copy)
123 123
field_role: 役割
124 124
field_homepage: ホームページ
125 125
field_is_public: 公開
126
field_autocreate_repository: Create repository
126 127
field_parent: 親プロジェクト名
127 128
field_is_in_chlog: 変更記録に表示されている問題
128 129
field_is_in_roadmap: ロードマップに表示されている問題
lang/he.yml (working copy)
124 124
field_role: תפקיד
125 125
field_homepage: דף הבית
126 126
field_is_public: פומבי
127
field_autocreate_repository: Create repository
127 128
field_parent: תת פרויקט של
128 129
field_is_in_chlog: נושאים המוצגים בדו"ח השינויים
129 130
field_is_in_roadmap: נושאים המוצגים במפת הדרכים
lang/fi.yml (working copy)
131 131
field_role: Rooli
132 132
field_homepage: Kotisivu
133 133
field_is_public: Julkinen
134
field_autocreate_repository: Create repository
134 135
field_parent: Alaprojekti
135 136
field_is_in_chlog: Tapahtumat näytetään muutoslokissa
136 137
field_is_in_roadmap: Tapahtumat näytetään roadmap näkymässä
lang/en.yml (working copy)
131 131
field_role: Role
132 132
field_homepage: Homepage
133 133
field_is_public: Public
134
field_autocreate_repository: Create repository
134 135
field_parent: Subproject of
135 136
field_is_in_chlog: Issues displayed in changelog
136 137
field_is_in_roadmap: Issues displayed in roadmap
lang/cs.yml (working copy)
122 122
field_role: Role
123 123
field_homepage: Úvodní
124 124
field_is_public: Veřejný
125
field_autocreate_repository: Create repository
125 126
field_parent: Podprojekt
126 127
field_is_in_chlog: Požadavky zobrazené v změnovém logu
127 128
field_is_in_roadmap: Požadavky zobrazené v roadmapě
lang/fr.yml (working copy)
132 132
field_role: Rôle
133 133
field_homepage: Site web
134 134
field_is_public: Public
135
field_autocreate_repository: Create repository
135 136
field_parent: Sous-projet de
136 137
field_is_in_chlog: Demandes affichées dans l'historique
137 138
field_is_in_roadmap: Demandes affichées dans la roadmap
lang/es.yml (working copy)
119 119
field_role: Perfil
120 120
field_homepage: Sitio web
121 121
field_is_public: Público
122
field_autocreate_repository: Create repository
122 123
field_parent: Proyecto padre
123 124
field_is_in_chlog: Consultar las peticiones en el histórico
124 125
field_is_in_roadmap: Consultar las peticiones en el roadmap
lang/nl.yml (working copy)
122 122
field_role: Rol
123 123
field_homepage: Homepage
124 124
field_is_public: Publiek
125
field_autocreate_repository: Create repository
125 126
field_parent: Subproject van
126 127
field_is_in_chlog: Issues weergegeven in wijzigingslog
127 128
field_is_in_roadmap: Issues weergegeven in roadmap
lang/ko.yml (working copy)
124 124
field_role: 역할
125 125
field_homepage: 홈페이지
126 126
field_is_public: 공개
127
field_autocreate_repository: Create repository
127 128
field_parent: 상위 프로젝트
128 129
field_is_in_chlog: 변경이력(changelog)에서 보여지는 티켓들
129 130
field_is_in_roadmap: 로드맵에서 보여지는 티켓들
lang/zh-tw.yml (working copy)
132 132
field_role: 角色
133 133
field_homepage: 網站首頁
134 134
field_is_public: 公開
135
field_autocreate_repository: Create repository
135 136
field_parent: 父專案
136 137
field_is_in_chlog: Issues displayed in changelog
137 138
field_is_in_roadmap: Issues displayed in roadmap
lang/pl.yml (working copy)
119 119
field_role: Rola
120 120
field_homepage: Strona www
121 121
field_is_public: Publiczny
122
field_autocreate_repository: Create repository
122 123
field_parent: Podprojekt
123 124
field_is_in_chlog: Zagadnienie pokazywane w zapisie zmian
124 125
field_is_in_roadmap: Zagadnienie pokazywane na mapie
lang/it.yml (working copy)
122 122
field_role: Ruolo
123 123
field_homepage: Homepage
124 124
field_is_public: Pubblico
125
field_autocreate_repository: Create repository
125 126
field_parent: Sottoprogetto di
126 127
field_is_in_chlog: Contesti mostrati nel changelog
127 128
field_is_in_roadmap: Contesti mostrati nel roadmap
extra/svn/reposman.rb (working copy)
174 174
  elsif not project.identifier.match(/^[a-z0-9\-]+$/)
175 175
    log("\tinvalid identifier for project #{project.name} : #{project.identifier}");
176 176
    next;
177
  elsif not project.autocreate_repository
178
      log("\trepository creation not selected")
179
    next;
177 180
  end
178 181

  
179 182
  repos_path = $repos_base + "/" + project.identifier
(2-2/2)