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 %> + +
+ <%=3D link_to l(:label_issue_view_all), :controller =3D> 'issues', := action =3D> 'index', :project_id =3D> @project, :set_filter =3D> 1 %> +
+<%=3D link_to l(:label_news_view_all), :controller =3D> 'news', :acti= on =3D> 'index', :project_id =3D> @project %>
+<% 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 +<%=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}) %>
+- <%=3D link_to l(:label_issue_view_all), :controller =3D> 'issues', := action =3D> 'index', :project_id =3D> @project, :set_filter =3D> 1 %> -
-<%=3D link_to l(:label_news_view_all), :controller =3D> 'news', :acti= on =3D> 'index', :project_id =3D> @project %>
-<% 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 -<%=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}) %>
-