File tree Expand file tree Collapse file tree
java/de/unirostock/sems/cbarchive/web Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 <Parameter name =" STORAGE" value =" /tmp/CombineArchiveWeb" override =" false" />
1313 <!-- URL to the SedML WebTools to enable the simulate Link, leave blank to disable -->
1414 <Parameter name =" SEDML_WEBTOOLS" value =" http://bqfbergmann.dyndns.org/SED-ML_Web_Tools/Home/SimulateUrl?url=" override =" false" />
15-
15+ <!-- max age for stats data in seconds-->
16+ <Parameter name =" MAX_STATS_AGE" value =" 10" override =" false" />
17+ <!-- Feedback Button URL, set to empty value to disable button -->
18+ <!-- <Parameter name="FEEDBACK_URL" value="https://sems.uni-rostock.de/trac/combinearchive-web/newticket?from=WEBCAT-INTERFACE" override="false" /> -->
19+
1620 <!-- Quotas -->
1721
1822 <!-- Maximum size in bytes of all workspaces together. 0 means unlimited -->
Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ public class Fields {
7878
7979 /** max time for caching statistic data */
8080 public static long MAX_STATS_AGE = 180 ;
81+
82+ /** Link to a feedback form */
83+ public static String FEEDBACK_URL = "https://sems.uni-rostock.de/trac/combinearchive-web/newticket?from=WEBCAT-INTERFACE" ;
8184
8285 // ------------------------------------------------------------------------
8386 // Quotas
@@ -151,6 +154,15 @@ else if (desiredLogLevel.equals ("NONE"))
151154 // max stats age
152155 MAX_STATS_AGE = parseLong ( context .getInitParameter ("MAX_STATS_AGE" ), MAX_STATS_AGE );
153156
157+ // feedback Url
158+ String feedbackUrl = context .getInitParameter ("FEEDBACK_URL" );
159+ if ( feedbackUrl != null && feedbackUrl .isEmpty () == true )
160+ // disable feedback button
161+ Fields .FEEDBACK_URL = null ;
162+ else if ( feedbackUrl != null && feedbackUrl .isEmpty () == false )
163+ // set another URL
164+ Fields .FEEDBACK_URL = feedbackUrl ;
165+
154166 // Quotas
155167
156168 QUOTA_TOTAL_SIZE = parseQuotaFromString ( context .getInitParameter ("QUOTA_TOTAL_SIZE" ) );
Original file line number Diff line number Diff line change 6262 Internet Explorer. Since we're fighting for open systems and
6363 reproducibility we're unwilling to buy and install proprietary
6464 software that is nothing but a big bug.</div >
65- <div id =" feedback" >
66- <a href =" https://sems.uni-rostock.de/trac/combinearchive-web/newticket?from=WEBCAT-INTERFACE" alt =" feedback" ></a >
67- </div >
65+ <% if ( Fields . FEEDBACK_URL != null ) { % >
66+ <div id =" feedback" >
67+ <a href =" <%= Fields . FEEDBACK_URL % >" title =" feedback" ></a >
68+ </div >
69+ <% } % >
6870 <div id =" templates" style =" display : none ;" >
6971 <div id =" template-navigation" >
7072
You can’t perform that action at this time.
0 commit comments