continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r329848 - in /maven/continuum/trunk/continuum-web/src/main: java/org/apache/maven/continuum/web/tool/StringTool.java resources/META-INF/plexus/components.xml resources/templates/screens/Delete.vm
Date Mon, 31 Oct 2005 16:28:53 GMT
Author: evenisse
Date: Mon Oct 31 08:28:45 2005
New Revision: 329848

URL: http://svn.apache.org/viewcvs?rev=329848&view=rev
Log:
Add project name in delete project message

Added:
    maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/StringTool.java
  (with props)
Modified:
    maven/continuum/trunk/continuum-web/src/main/resources/META-INF/plexus/components.xml
    maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm

Added: maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/StringTool.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/StringTool.java?rev=329848&view=auto
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/StringTool.java
(added)
+++ maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/StringTool.java
Mon Oct 31 08:28:45 2005
@@ -0,0 +1,13 @@
+package org.apache.maven.continuum.web.tool;
+
+/**
+ * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
+ * @version $Id$
+ */
+public class StringTool
+{
+    public int toInt( String value )
+    {
+        return Integer.parseInt( value );
+    }
+}
\ No newline at end of file

Propchange: maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/StringTool.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/tool/StringTool.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: maven/continuum/trunk/continuum-web/src/main/resources/META-INF/plexus/components.xml
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/META-INF/plexus/components.xml?rev=329848&r1=329847&r2=329848&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/META-INF/plexus/components.xml
(original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/META-INF/plexus/components.xml
Mon Oct 31 08:28:45 2005
@@ -116,6 +116,11 @@
             <role>org.apache.maven.continuum.web.tool.FormDataTool</role>
             <scope>global</scope>
           </tool>
+          <tool>
+            <name>stringtool</name>
+            <role>org.apache.maven.continuum.web.tool.StringTool</role>
+            <scope>global</scope>
+          </tool>
         </tools>
       </configuration>
     </component>
@@ -136,6 +141,12 @@
     <component>
       <role>org.apache.maven.continuum.web.tool.FormDataTool</role>
       <implementation>org.apache.maven.continuum.web.tool.FormDataTool</implementation>
+      <configuration/>
+    </component>
+
+    <component>
+      <role>org.apache.maven.continuum.web.tool.StringTool</role>
+      <implementation>org.apache.maven.continuum.web.tool.StringTool</implementation>
       <configuration/>
     </component>
 

Modified: maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm?rev=329848&r1=329847&r2=329848&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm (original)
+++ maven/continuum/trunk/continuum-web/src/main/resources/templates/screens/Delete.vm Mon
Oct 31 08:28:45 2005
@@ -1,11 +1,13 @@
 $page.setTitle( "Delete Project" )
 
+#set ( $project = $continuum.getProject( $stringtool.toInt( $id ) ) )
+
 <div class="app">
   <div id="axial" class="h3">
     <h3>$i18n.getString( $form.delete.titleKey )</h3>
     <div class="warningmessage">
       <p>
-        <strong>$i18n.getString( "delete.confirmation.message" )</strong>
+        <strong>$i18n.getString( "delete.confirmation.message" ) ($project.name)</strong>
       </p>
     </div>
     <form method="post" action="$link">



Mime
View raw message