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) =================================================================== --- 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 @@ +<% +if $PROGRAM_NAME.include?("redmine-chorem") + domain = "chorem.org" + domainsonar = "org.chorem" + domainmaven = "org/chorem" +else + if $PROGRAM_NAME.include?("redmine-nuiton") + domain = "nuiton.org" + domainsonar = "org.nuiton" + domainmaven = "org/nuiton" + else + domain = "forge.codelutin.com" + domainsonar = "com.codelutin.forge" + domainmaven = "forge.codelutin.com" + end +end +mavenrepo = "" +mavencentral = false +@project.custom_values.each do |custom_value| + if !custom_value.value.empty? && custom_value.custom_field.name == "maven-release-repository" + mavenrepo=custom_value.value + if mavenrepo == "http://nexus.nuiton.org/nexus/content/repositories/central-releases/" + mavencentral = true + end + end +end + +if mavenrepo == "" + mavenrepo = "http://nexus.nuiton.org/nexus/content/repositories/other-releases/" +end + +%> + +<link href="/plugin_assets/cl-overview-project/stylesheets/cl-overview-project.css" media="screen" rel="stylesheet" type="text/css" /> + +<%= textilizable @project.description %> + + <ul> + <% if @subprojects.any? %> + <li><%=l(:label_subproject_plural)%>: <%= @subprojects.collect{|p| link_to(h(p.name), :action => 'show', :id => p)}.join(", ") %></li> + <% end %> + <% if @project.parent %> + <li><%=l(:field_parent)%>: <%= link_to h(@project.parent.name), :controller => 'projects', :action => 'show', :id => @project.parent %></li> + <% end %> + <% @project.custom_values.each do |custom_value| %> + <% if !custom_value.value.empty? && ! custom_value == "maven-release-repository" %> + <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> + <% end %> + <% end %> + </ul> + +<div class="boxes"> + +<div class="splitcontentleft"> + + <div class="web-site box"> + <h3 class="icon22">Site web</h3> + <ul> + <li>Site web : <a href="http://maven-site.<%=domain%>/<%=@project.identifier%>" class="external">http://maven-site.<%=domain%>/<%=@project.identifier%></a></li> + <% unless @project.homepage.blank? %><li>Demo : <%= link_to(h(@project.homepage), @project.homepage) %></li><% end %> + <li><a href="<%=@project.identifier%>/files">Download</a></li> + </ul> + </div> + + + <div class="listes box"> + <h3 class="icon22">Listes</h3> + <ul> + <li>Liste pour que les utilisateurs puissent échanger : <a href="http://list.<%=domain%>/cgi-bin/mailman/listinfo/<%=@project.identifier%>-users" class="external"><%=@project.identifier%>-users</a></li> + <li>Liste de discussion des développeurs : <a href="http://list.<%=domain%>/cgi-bin/mailman/listinfo/<%=@project.identifier%>-devel" class="external"><%=@project.identifier%>-devel</a></li> + <li>Liste recevant tous les commits svn : <a href="http://list.<%=domain%>/cgi-bin/mailman/listinfo/<%=@project.identifier%>-commits" class="external"><%=@project.identifier%>-commits</a></li> + </ul> + </div> + + <div class="dev box"> + <h3 class="icon22">Environnement de développement</h3> + <ul> + <li><a href="http://svn.<%=domain%>/svn/<%=@project.identifier%>" class="external">Dépot des sources (SVN)</a></li> + <li><a href="http://ci.<%=domain%>/jenkins/job/<%=@project.identifier%>" class="external">Integration continue (Hudson)</li> + <li><a href="http://qa.<%=domain%>/sonar/project/index/<%=domainsonar%>:<%=@project.identifier%>" class="external">Analyses et metrics du code (Sonar)</li> + <!--li><a href="http://maven.<%=domain%>/release/<%=domainmaven%>/<%=@project.identifier%>" class="external">Dépot des binaires (Maven)</li--> + + <li><a href="<%=mavenrepo%><%=domainmaven%>/<%=@project.identifier%>" class="external">Dépot des binaires (Maven)</a> + <% if mavencentral == true %> + <a href="http://repo1.maven.org/maven2/<%=domainmaven%>/<%=@project.identifier%>" class="icon22 mavencentral">synchronized on Central</a> + <% end %> + </li> + </ul> + </div> + +</div> + +<div class="splitcontentright"> + <%= render :partial => 'members_box' %> + + <% if User.current.allowed_to?(:view_issues, @project) %> + <div class="issues box"> + <h3><%=l(:label_issue_tracking)%></h3> + <ul> + <% for tracker in @trackers %> + <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project, + :set_filter => 1, + "tracker_id" => tracker.id %>: + <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i, + + :total => @total_issues_by_tracker[tracker].to_i) %> + </li> + <% end %> + </ul> + <p> + <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %> + </p> + </div> + <% end %> + + + <% if @news.any? && authorize_for('news', 'index') %> + <div class="last-news box"> + <h3><%=l(:label_news_latest)%></h3> + <%= render :partial => 'news/news', :collection => @news %> + <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p> + </div> + <% end %> +</div> + + +</div> + +<% content_for :sidebar do %> + <div id="planning"> + <h3>Planning</h3> + <p><% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> + <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %> + <% end %> + <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %> + | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %> + <% end %> + </p> + + </div> + + + <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %> + <div id="time"> + <h3><%= l(:label_spent_time) %></h3> + <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> + <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | + <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p> + </div> + <% end %> +<% end %> + + +<% content_for :header_tags do %> +<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %> +<% end %> + +<% html_title(l(:label_overview)) -%> Deleted: cl-overview-project/trunk/app/views/projects/show.rhtml =================================================================== --- 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 @@ -<% -if $PROGRAM_NAME.include?("redmine-chorem") - domain = "chorem.org" - domainsonar = "org.chorem" - domainmaven = "org/chorem" -else - if $PROGRAM_NAME.include?("redmine-nuiton") - domain = "nuiton.org" - domainsonar = "org.nuiton" - domainmaven = "org/nuiton" - else - domain = "forge.codelutin.com" - domainsonar = "com.codelutin.forge" - domainmaven = "forge.codelutin.com" - end -end -mavenrepo = "" -mavencentral = false -@project.custom_values.each do |custom_value| - if !custom_value.value.empty? && custom_value.custom_field.name == "maven-release-repository" - mavenrepo=custom_value.value - if mavenrepo == "http://nexus.nuiton.org/nexus/content/repositories/central-releases/" - mavencentral = true - end - end -end - -if mavenrepo == "" - mavenrepo = "http://nexus.nuiton.org/nexus/content/repositories/other-releases/" -end - -%> - -<link href="/plugin_assets/cl-overview-project/stylesheets/cl-overview-project.css" media="screen" rel="stylesheet" type="text/css" /> - -<%= textilizable @project.description %> - - <ul> - <% if @subprojects.any? %> - <li><%=l(:label_subproject_plural)%>: <%= @subprojects.collect{|p| link_to(h(p.name), :action => 'show', :id => p)}.join(", ") %></li> - <% end %> - <% if @project.parent %> - <li><%=l(:field_parent)%>: <%= link_to h(@project.parent.name), :controller => 'projects', :action => 'show', :id => @project.parent %></li> - <% end %> - <% @project.custom_values.each do |custom_value| %> - <% if !custom_value.value.empty? && ! custom_value == "maven-release-repository" %> - <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> - <% end %> - <% end %> - </ul> - -<div class="boxes"> - -<div class="splitcontentleft"> - - <div class="web-site box"> - <h3 class="icon22">Site web</h3> - <ul> - <li>Site web : <a href="http://maven-site.<%=domain%>/<%=@project.identifier%>" class="external">http://maven-site.<%=domain%>/<%=@project.identifier%></a></li> - <% unless @project.homepage.blank? %><li>Demo : <%= link_to(h(@project.homepage), @project.homepage) %></li><% end %> - <li><a href="<%=@project.identifier%>/files">Download</a></li> - </ul> - </div> - - - <div class="listes box"> - <h3 class="icon22">Listes</h3> - <ul> - <li>Liste pour que les utilisateurs puissent échanger : <a href="http://list.<%=domain%>/cgi-bin/mailman/listinfo/<%=@project.identifier%>-users" class="external"><%=@project.identifier%>-users</a></li> - <li>Liste de discussion des développeurs : <a href="http://list.<%=domain%>/cgi-bin/mailman/listinfo/<%=@project.identifier%>-devel" class="external"><%=@project.identifier%>-devel</a></li> - <li>Liste recevant tous les commits svn : <a href="http://list.<%=domain%>/cgi-bin/mailman/listinfo/<%=@project.identifier%>-commits" class="external"><%=@project.identifier%>-commits</a></li> - </ul> - </div> - - <div class="dev box"> - <h3 class="icon22">Environnement de développement</h3> - <ul> - <li><a href="http://svn.<%=domain%>/svn/<%=@project.identifier%>" class="external">Dépot des sources (SVN)</a></li> - <li><a href="http://ci.<%=domain%>/jenkins/job/<%=@project.identifier%>" class="external">Integration continue (Hudson)</li> - <li><a href="http://qa.<%=domain%>/sonar/project/index/<%=domainsonar%>:<%=@project.identifier%>" class="external">Analyses et metrics du code (Sonar)</li> - <!--li><a href="http://maven.<%=domain%>/release/<%=domainmaven%>/<%=@project.identifier%>" class="external">Dépot des binaires (Maven)</li--> - - <li><a href="<%=mavenrepo%><%=domainmaven%>/<%=@project.identifier%>" class="external">Dépot des binaires (Maven)</a> - <% if mavencentral == true %> - <a href="http://repo1.maven.org/maven2/<%=domainmaven%>/<%=@project.identifier%>" class="icon22 mavencentral">synchronized on Central</a> - <% end %> - </li> - </ul> - </div> - -</div> - -<div class="splitcontentright"> - <%= render :partial => 'members_box' %> - - <% if User.current.allowed_to?(:view_issues, @project) %> - <div class="issues box"> - <h3><%=l(:label_issue_tracking)%></h3> - <ul> - <% for tracker in @trackers %> - <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project, - :set_filter => 1, - "tracker_id" => tracker.id %>: - <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i, - - :total => @total_issues_by_tracker[tracker].to_i) %> - </li> - <% end %> - </ul> - <p> - <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %> - </p> - </div> - <% end %> - - - <% if @news.any? && authorize_for('news', 'index') %> - <div class="last-news box"> - <h3><%=l(:label_news_latest)%></h3> - <%= render :partial => 'news/news', :collection => @news %> - <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p> - </div> - <% end %> -</div> - - -</div> - -<% content_for :sidebar do %> - <div id="planning"> - <h3>Planning</h3> - <p><% if User.current.allowed_to?(:view_calendar, @project, :global => true) %> - <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %> - <% end %> - <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %> - | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %> - <% end %> - </p> - - </div> - - - <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %> - <div id="time"> - <h3><%= l(:label_spent_time) %></h3> - <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p> - <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> | - <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p> - </div> - <% end %> -<% end %> - - -<% content_for :header_tags do %> -<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %> -<% end %> - -<% html_title(l(:label_overview)) -%>