I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

0002-Create-Repository-button-below-formular-and-only-onc.patch

Elektritter Messinger, 06 May 2014 12:12

Download (3.18 KB)

View differences:

lib/scm_repositories_helper_patch.rb
68 68
                else # Rails 3.1 and above
69 69
                    add = submit_tag(l(:button_create_new_repository), :onclick => "$('#repository_operation').val('add');")
70 70
                end
71
                svntags.gsub!('<br />', ' ' + add + '<br />')
71
                svntags << content_tag(:p, add)
72 72
                svntags << hidden_field_tag(:operation, '', :id => 'repository_operation')
73 73
                unless request.post?
74 74
                    path = SubversionCreator.access_root_url(SubversionCreator.default_path(@project.identifier))
......
107 107
                else # Rails 3.1 and above
108 108
                    add = submit_tag(l(:button_create_new_repository), :onclick => "$('#repository_operation').val('add');")
109 109
                end
110
                if hgtags.include?('<br />')
111
                    hgtags.gsub!('<br />', ' ' + add + '<br />')
112
                else
113
                    hgtags.gsub!('</p>', ' ' + add + '</p>')
114
                end
110
                hgtags<< content_tag(:p, add)
115 111
                hgtags << hidden_field_tag(:operation, '', :id => 'repository_operation')
116 112
                unless request.post?
117 113
                    path = MercurialCreator.access_root_url(MercurialCreator.default_path(@project.identifier))
......
156 152
                else # Rails 3.1 and above
157 153
                    add = submit_tag(l(:button_create_new_repository), :onclick => "$('#repository_operation').val('add');")
158 154
                end
159
                bzrtags.gsub!('</p>', ' ' + add + '</p>')
155
                bzrtags<< content_tag(:p, add)
160 156
                bzrtags << hidden_field_tag(:operation, '', :id => 'repository_operation')
161 157
                unless request.post?
162 158
                    path = BazaarCreator.access_root_url(BazaarCreator.default_path(@project.identifier))
......
202 198
                else # Rails 3.1 and above
203 199
                    add = submit_tag(l(:button_create_new_repository), :onclick => "$('#repository_operation').val('add');")
204 200
                end
205
                if gittags.include?('<br />')
206
                    gittags.gsub!('<br />', ' ' + add + '<br />')
207
                else
208
                    gittags.gsub!('</p>', ' ' + add + '</p>')
209
                end
201
                gittags<< content_tag(:p, add)
210 202
                gittags << hidden_field_tag(:operation, '', :id => 'repository_operation')
211 203
                unless request.post?
212 204
                    path = GitCreator.access_root_url(GitCreator.default_path(@project.identifier))
213
- 
Terms of use | Privacy policy