have copyright headers for .text.erb files

pull/400/head
Philipp Tessenow 11 years ago
parent e5f516c587
commit 8c1e472f63
  1. 12
      app/views/layouts/user_mailer.text.erb
  2. 12
      app/views/user_mailer/_issue_details.text.erb
  3. 12
      app/views/user_mailer/account_activated.text.erb
  4. 12
      app/views/user_mailer/account_activation_requested.text.erb
  5. 12
      app/views/user_mailer/account_information.text.erb
  6. 12
      app/views/user_mailer/attachments_added.text.erb
  7. 12
      app/views/user_mailer/issue_added.text.erb
  8. 12
      app/views/user_mailer/issue_updated.text.erb
  9. 12
      app/views/user_mailer/message_posted.text.erb
  10. 12
      app/views/user_mailer/news_added.text.erb
  11. 12
      app/views/user_mailer/news_comment_added.text.erb
  12. 12
      app/views/user_mailer/password_lost.text.erb
  13. 12
      app/views/user_mailer/reminder_mail.text.erb
  14. 12
      app/views/user_mailer/test_mail.text.erb
  15. 12
      app/views/user_mailer/user_signed_up.text.erb
  16. 12
      app/views/user_mailer/wiki_content_added.text.erb
  17. 12
      app/views/user_mailer/wiki_content_updated.text.erb
  18. 12
      app/views/welcome/robots.text.erb
  19. 6
      lib/tasks/copyright.rake

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= Setting.localized_emails_header %>
<%= call_hook(:view_layouts_mailer_plain_before_content, self.assigns) %>
<%= yield %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= issue.to_s %>
<%= issue_url(issue) %>

@ -1,2 +1,14 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:notice_account_activated) %>
<%= t(:label_login) %>: <%= signin_url %>

@ -1,2 +1,14 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:mail_body_account_activation_request, :value => @user.login) %>
<%= @activation_url %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<% if @user.auth_source %>
<%= t(:mail_body_account_information_external, @user.auth_source.name) %>
<% else %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= @added_to %>
<% @attachments.each do |attachment | %>
* <%= attachment.filename %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:text_work_package_added, :id => "##{@issue.id}", :author => @issue.author) %>
----------------------------------------

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:text_work_package_updated, :id => "##{@issue.id}", :author => @journal.user) %>
<% @journal.details.each do |detail| %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= @message_url %>
<%= @message.author %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= @news.title %>
<%= news_url(@news) %>
<%= @news.author.name if @news.author %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= @news.title %>
<%= news_url(@news) %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:mail_body_lost_password) %>
<%= @reset_password_url %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:mail_body_reminder, :count => @issues.size, :days => @days) %>
<% @issues.each do |issue| -%>

@ -1,2 +1,14 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
This is a test email sent by OpenProject.
OpenProject URL: <%= @welcome_url %>

@ -1,2 +1,14 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:mail_body_register) %>
<%= @activation_url %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:mail_body_wiki_content_added,
:id => @wiki_content.page.pretty_title,
:author => @wiki_content.author) %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
<%= t(:mail_body_wiki_content_updated,
:id => @wiki_content.page.pretty_title,
:author => @wiki_content.author) %>

@ -1,3 +1,15 @@
<%#-- copyright
OpenProject is a project management system.
Copyright (C) 2012-2013 the OpenProject Team
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.
See doc/COPYRIGHT.rdoc for more details.
++#%>
User-agent: *
<% @projects.each do |p| -%>
Disallow: /projects/<%= p.to_param %>/repository

@ -183,6 +183,11 @@ namespace :copyright do
rewrite_copyright("html.erb", [], :erb, args[:arg1])
end
desc "Update the copyright on .text.erb source files"
task :update_text_erb, :arg1 do |task, args|
rewrite_copyright("text.erb", [], :erb, args[:arg1])
end
desc "Update the copyright on .api.rsb source files"
task :update_api_rsb, :arg1 do |task, args|
rewrite_copyright("api.rsb", [], :rb, args[:arg1])
@ -196,6 +201,7 @@ namespace :copyright do
:update_js_erb,
:update_css_erb,
:update_html_erb,
:update_text_erb,
:update_api_rsb,
:update_rake,
:update_feature,

Loading…
Cancel
Save