From tchemit@users.nuiton.org Wed Mar 21 12:21:21 2012 From: tchemit@users.nuiton.org To: nuiton-redmine-site-commits@list.nuiton.org Subject: [Nuiton-redmine-site-commits] r36 - cl-overview-project/trunk/app/views/projects Date: Wed, 21 Mar 2012 12:21:21 +0100 Message-ID: <20120321112121.AC73A5A551@nuiton.codelutin.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1792603824215438369==" --===============1792603824215438369== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: tchemit Date: 2012-03-21 12:21:21 +0100 (Wed, 21 Mar 2012) New Revision: 36 Url: http://nuiton.org/repositories/revision/nuiton-redmine-site/36 Log: fixes #2023 (templates are notc ompatible with redmine 1.3) Added: cl-overview-project/trunk/app/views/projects/show.html.erb Removed: cl-overview-project/trunk/app/views/projects/show.rhtml Copied: cl-overview-project/trunk/app/views/projects/show.html.erb (from rev = 35, cl-overview-project/trunk/app/views/projects/show.rhtml) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- cl-overview-project/trunk/app/views/projects/show.html.erb = (rev 0) +++ cl-overview-project/trunk/app/views/projects/show.html.erb 2012-03-21 11:= 21:21 UTC (rev 36) @@ -0,0 +1,158 @@ +<%=20 +if $PROGRAM_NAME.include?("redmine-chorem") + domain =3D "chorem.org" + domainsonar =3D "org.chorem" + domainmaven =3D "org/chorem" +else + if $PROGRAM_NAME.include?("redmine-nuiton") + domain =3D "nuiton.org" + domainsonar =3D "org.nuiton" + domainmaven =3D "org/nuiton" + else=20 + domain =3D "forge.codelutin.com" + domainsonar =3D "com.codelutin.forge" + domainmaven =3D "forge.codelutin.com" + end +end +mavenrepo =3D "" +mavencentral =3D false +@project.custom_values.each do |custom_value|=20 + if !custom_value.value.empty? && custom_value.custom_field.name =3D=3D "ma= ven-release-repository" + mavenrepo=3Dcustom_value.value + if mavenrepo =3D=3D "http://nexus.nuiton.org/nexus/content/repositories/= central-releases/" + mavencentral =3D true + end + end +end + +if mavenrepo =3D=3D "" + mavenrepo =3D "http://nexus.nuiton.org/nexus/content/repositories/other-re= leases/" +end + +%> + +=20 + +<%=3D textilizable @project.description %> + + =09 + +
+ +
+ +
=20 +

Site web

+ +
+ + + + + +=20 +
+ +
+ <%=3D render :partial =3D> 'members_box' %> + + <% if User.current.allowed_to?(:view_issues, @project) %> +
=20 +

<%=3Dl(:label_issue_tracking)%>

+
    + <% for tracker in @trackers %> =20 +
  • <%=3D link_to tracker.name, :controller =3D> 'issues', :action =3D= > 'index', :project_id =3D> @project,=20 + :set_filter =3D> 1,=20 + "tracker_id" =3D> tracker.id= %>: + <%=3D l(:label_x_open_issues_abbr_on= _total, :count =3D> @open_issues_by_tracker[tracker].to_i, + = = =20 + :total =3D> @total_issues_by_tracker[tracker].to_i) %> +
  • + <% end %> +
+

+ <%=3D link_to l(:label_issue_view_all), :controller =3D> 'issues', := action =3D> 'index', :project_id =3D> @project, :set_filter =3D> 1 %> +

+
+ <% end %> + + =20 + <% if @news.any? && authorize_for('news', 'index') %> +
+

<%=3Dl(:label_news_latest)%>

=20 + <%=3D render :partial =3D> 'news/news', :collection =3D> @news %> +

<%=3D link_to l(:label_news_view_all), :controller =3D> 'news', :acti= on =3D> 'index', :project_id =3D> @project %>

+
=20 + <% end %> +
+ + +
+ +<% content_for :sidebar do %> +
+

Planning

+

<% if User.current.allowed_to?(:view_calendar, @project, :global = =3D> true) %> + <%=3D link_to(l(:label_calendar), :controlle= r =3D> 'calendars', :action =3D> 'show', :project_id =3D> @project) %> + <% end %> + <% if User.current.allowed_to?(:view_gantt, @project= , :global =3D> true) %> + | <%=3D link_to(l(:label_gantt), :controller= =3D> 'gantts', :action =3D> 'show', :project_id =3D> @project) %> + <% end %> +

+ =20 +
+ + =20 + <% if @total_hours && User.current.allowed_to?(:view_time_entries, @proj= ect) %> +
+

<%=3D l(:label_spent_time) %>

+

<%=3D l_hours(@total_hours) %><= /p> +

<%=3D link_to(l(:label_details), {:controller =3D> 'timelog', :action= =3D> 'index', :project_id =3D> @project}) %> | + <%=3D link_to(l(:label_report), {:controller =3D> 'time_entry_reports', = :action =3D> 'report', :project_id =3D> @project}) %>

+
+ <% end %> +<% end %> + =20 + +<% content_for :header_tags do %> +<%=3D auto_discovery_link_tag(:atom, {:controller =3D> 'activities', :action= =3D> 'index', :id =3D> @project, :format =3D> 'atom', :key =3D> User.current= .rss_key}) %> +<% end %> + +<% html_title(l(:label_overview)) -%> Deleted: cl-overview-project/trunk/app/views/projects/show.rhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- cl-overview-project/trunk/app/views/projects/show.rhtml 2012-03-19 19:00:= 49 UTC (rev 35) +++ cl-overview-project/trunk/app/views/projects/show.rhtml 2012-03-21 11:21:= 21 UTC (rev 36) @@ -1,158 +0,0 @@ -<%=20 -if $PROGRAM_NAME.include?("redmine-chorem") - domain =3D "chorem.org" - domainsonar =3D "org.chorem" - domainmaven =3D "org/chorem" -else - if $PROGRAM_NAME.include?("redmine-nuiton") - domain =3D "nuiton.org" - domainsonar =3D "org.nuiton" - domainmaven =3D "org/nuiton" - else=20 - domain =3D "forge.codelutin.com" - domainsonar =3D "com.codelutin.forge" - domainmaven =3D "forge.codelutin.com" - end -end -mavenrepo =3D "" -mavencentral =3D false -@project.custom_values.each do |custom_value|=20 - if !custom_value.value.empty? && custom_value.custom_field.name =3D=3D "ma= ven-release-repository" - mavenrepo=3Dcustom_value.value - if mavenrepo =3D=3D "http://nexus.nuiton.org/nexus/content/repositories/= central-releases/" - mavencentral =3D true - end - end -end - -if mavenrepo =3D=3D "" - mavenrepo =3D "http://nexus.nuiton.org/nexus/content/repositories/other-re= leases/" -end - -%> - -=20 - -<%=3D textilizable @project.description %> - - =09 - -
- -
- -
=20 -

Site web

-
-
- - - - - -=20 -
- -
- <%=3D render :partial =3D> 'members_box' %> - - <% if User.current.allowed_to?(:view_issues, @project) %> -
=20 -

<%=3Dl(:label_issue_tracking)%>

-
    - <% for tracker in @trackers %> =20 -
  • <%=3D link_to tracker.name, :controller =3D> 'issues', :action =3D= > 'index', :project_id =3D> @project,=20 - :set_filter =3D> 1,=20 - "tracker_id" =3D> tracker.id= %>: - <%=3D l(:label_x_open_issues_abbr_on= _total, :count =3D> @open_issues_by_tracker[tracker].to_i, - = = =20 - :total =3D> @total_issues_by_tracker[tracker].to_i) %> -
  • - <% end %> -
-

- <%=3D link_to l(:label_issue_view_all), :controller =3D> 'issues', := action =3D> 'index', :project_id =3D> @project, :set_filter =3D> 1 %> -

-
- <% end %> - - =20 - <% if @news.any? && authorize_for('news', 'index') %> -
-

<%=3Dl(:label_news_latest)%>

=20 - <%=3D render :partial =3D> 'news/news', :collection =3D> @news %> -

<%=3D link_to l(:label_news_view_all), :controller =3D> 'news', :acti= on =3D> 'index', :project_id =3D> @project %>

-
=20 - <% end %> -
- - -
- -<% content_for :sidebar do %> -
-

Planning

-

<% if User.current.allowed_to?(:view_calendar, @project, :global = =3D> true) %> - <%=3D link_to(l(:label_calendar), :controlle= r =3D> 'calendars', :action =3D> 'show', :project_id =3D> @project) %> - <% end %> - <% if User.current.allowed_to?(:view_gantt, @project= , :global =3D> true) %> - | <%=3D link_to(l(:label_gantt), :controller= =3D> 'gantts', :action =3D> 'show', :project_id =3D> @project) %> - <% end %> -

- =20 -
- - =20 - <% if @total_hours && User.current.allowed_to?(:view_time_entries, @proj= ect) %> -
-

<%=3D l(:label_spent_time) %>

-

<%=3D l_hours(@total_hours) %><= /p> -

<%=3D link_to(l(:label_details), {:controller =3D> 'timelog', :action= =3D> 'index', :project_id =3D> @project}) %> | - <%=3D link_to(l(:label_report), {:controller =3D> 'time_entry_reports', = :action =3D> 'report', :project_id =3D> @project}) %>

-
- <% end %> -<% end %> - =20 - -<% content_for :header_tags do %> -<%=3D auto_discovery_link_tag(:atom, {:controller =3D> 'activities', :action= =3D> 'index', :id =3D> @project, :format =3D> 'atom', :key =3D> User.current= .rss_key}) %> -<% end %> - -<% html_title(l(:label_overview)) -%> --===============1792603824215438369==--