Commits

Sebastian Sdorra  committed 9f50c9c

move templates to a secured directory

  • Participants
  • Parent commits f7f9e28

Comments (0)

Files changed (9)

File scm-plugin-backend/src/main/java/sonia/scm/plugin/rest/FreemarkerTemplateProvider.java

 {
 
   /** Field description */
-  public static final String DIRECTORY_TEMPLATES = "/";
+  public static final String DIRECTORY_TEMPLATES = "/WEB-INF/ftl";
 
   /** Field description */
   private static final String EXTENSION = ".html";

File scm-plugin-backend/src/main/webapp/WEB-INF/ftl/detail.html

+<#include "template/header.html">
+
+<p>${latest.description}</p>
+
+<h2>Plugin Informations</h2>
+
+<table>
+  <tr>
+    <th>Name</th>
+    <td>${latest.name}</td>
+  </tr>
+  <tr>
+    <th>Category</th>
+    <td>
+      <#if latest.category??>
+        ${latest.category}
+      <#else>
+        Miscellaneous
+      </#if>
+    </td>
+  </tr>
+  <tr>
+    <th>GroupId</th>
+    <td>${latest.groupId}</td>
+  </tr>
+  <tr>
+    <th>ArtifactId</th>
+    <td>${latest.artifactId}</td>
+  </tr>
+  <tr>
+    <th>Author</th>
+    <td>${latest.author}</td>
+  </tr>
+  <#if latest.url??>
+  <tr>
+    <th>URL</th>
+    <td>
+      <a href="${latest.url}" target="_blank">
+        ${latest.url}
+      </a>
+    </td>
+  </tr>
+  </#if>
+  <#if latest.wiki??>
+  <tr>
+    <th>Wiki</th>
+    <td>
+      <a href="${latest.wiki}" target="_blank">
+        ${latest.wiki}
+      </a>
+    </td>
+  </tr>
+  </#if>
+</table>
+
+<p>&nbsp;</p>
+
+<#if latest.screenshots??>
+  <div class="screenshots">
+    <#list latest.screenshots as screenshot>
+      <a class="screenshot" href="${screenshot}">
+        <#if latest.screenshots?size == 1>
+          <#assign size="l">
+        <#elseif latest.screenshots?size == 2>
+          <#assign size="m">
+        <#else>
+          <#assign size="s">
+        </#if>
+        <img class="screenshot" src="${contextPath}/page/screenshot/${latest.groupId}/${latest.artifactId}/${screenshot_index}/${size}.jpg" alt="screenshot" />
+      </a>
+    </#list>
+  </div>
+
+  <script type="text/javascript">
+    $(document).ready(function(){
+      $('a.screenshot').fancybox();
+    });
+  </script>
+
+  <p>&nbsp;</p>
+  
+</#if>
+
+<h2>Plugin Versions</h2>
+
+<div id="accordion">
+<#if versions?has_content>
+  <#list versions as versionWrapper>
+    <#assign version=versionWrapper.plugin>
+    <h3><a href="#">${version.version}</a></h3>
+    <div>
+      <p>${version.description}</p>
+      <#if version.condition??>
+        <h4>Conditions</h4>
+        <ul>
+          <#if version.condition.minVersion??>
+          <li>Minimum Version: ${version.condition.minVersion}</li>
+          </#if>
+          <#if version.condition.os??>
+          <li>
+            Operatingsystems:
+            <#list version.condition.os as os>
+              ${os}<#if os_has_next>, </#if>
+            </#list>
+          </li>
+          </#if>
+          <#if version.condition.arch??>
+          <li>Architecture: ${version.condition.arch}</li>
+          </#if>
+        </ul>
+      </#if>
+      <#if versionWrapper.compareUrl??>
+        <a href="${versionWrapper.compareUrl}" target="_blank" style="color: #1C94C4;">
+          compare
+        </a>
+      </#if>
+    </div>
+  </#list>
+<#else>
+  Plugin not yet released
+</#if>
+</div>
+
+<p>&nbsp;</p>
+
+<a href="${contextPath}/page/index.html">Overview</a>
+
+<script type="text/javascript">
+  jQuery(document).ready(function(){
+    $( "#accordion" ).accordion({
+      active: false
+    });
+  });
+</script>
+
+<#include "template/footer.html">

File scm-plugin-backend/src/main/webapp/WEB-INF/ftl/index.html

+<#include "template/header.html">
+
+<div id="categories">
+<#list categories as category>
+  <div style="padding-bottom: 20px">
+    <h2>${category.name}</h2>
+    <div class="plugins">
+      <#list category.plugins as plugin>
+        <h3><a href="#">${plugin.name}</a></h3>
+        <div>
+          ${plugin.description}<br />
+          <a href="${contextPath}/page/detail/${plugin.groupId}/${plugin.artifactId}.html" style="color: #1C94C4;">more</a>
+        </div>
+      </#list>
+    </div>
+  </div>
+</#list>
+</div>
+
+<script type="text/javascript">
+  jQuery(document).ready(function(){
+    $( "div.plugins" ).accordion({
+      active: false
+    });
+  });
+</script>
+
+<#include "template/footer.html">

File scm-plugin-backend/src/main/webapp/WEB-INF/ftl/template/footer.html

+                  <!-- content end -->
+                </div>
+              </article>        
+            </div>
+            <div class="primary" id="sidebar">
+              <ul class="xoxo">
+                <li id="linkcat-3" class="widget-container widget_links">
+                  <h3 class="widget-title">Links</h3>
+                  <ul class="xoxo blogroll">
+                    <li>
+                      <a href="https://bitbucket.org/sdorra/scm-manager/wiki/download" target="_blank">Download</a>
+                    </li>
+                    <li>
+                      <a href="https://bitbucket.org/sdorra/scm-manager/issues?status=new&amp;status=open" target="_blank">Issue Tracker</a>
+                    </li>
+                    <li>
+                      <a href="http://groups.google.com/group/scmmanager" target="_blank">Mailing List</a>
+                    </li>
+                    <li>
+                      <a href="https://bitbucket.org/sdorra/scm-manager/wiki" target="_blank">Wiki</a>
+                    </li>
+                  </ul>
+                </li>
+                <li class="widget-container widget_recent_entries">
+                  <h3 class="widget-title">Latest News</h3>
+                  <div id="news"></div>
+                  <script type="text/javascript">
+                  $(document).ready(function(){
+                    $('#news').feeds('${contextPath}/news', {
+                      loadingImage: '${contextPath}/template/css/images/load.gif',
+                      maxItems: 3
+                    });
+                  });
+                </script>
+                </li> 
+                <li class="widget-container widget_links">
+                  <h3 class="widget-title">Social</h3>
+                  <div id="social4i" style="position: relative; display: block;">
+                    <div class="socialicons" style="float:left;margin-right: 8px;">
+                      <div style="float: left;" id="fb-root" class=" fb_reset">
+                        <div style="position: absolute; top: -10000px; height: 0pt; width: 0pt;"></div>
+                      </div>
+                      <script src="http://connect.facebook.net/en_US/all.js#appId=221636557882194&amp;xfbml=1"></script>
+                      <fb:like font="" show_faces="true" width="52" layout="box_count" send="false" href="http://www.scm-manager.org" class=" fb_edge_widget_with_comment fb_iframe_widget"></fb:like>
+                    </div>
+                    <div class="socialicons" style="float:left;margin-right: 8px;">
+                      <div id="___plusone_0" style="height: 60px; width: 50px; display: inline-block; text-indent: 0pt; margin: 0pt; padding: 0pt; background: none repeat scroll 0% 0% transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline;"><iframe width="100%" scrolling="no" frameborder="0" title="+1" vspace="0" tabindex="-1" style="position: static; left: 0pt; top: 0pt; width: 50px; margin: 0px; border-style: none; height: 60px; visibility: visible;" src="https://plusone.google.com/u/0/_/+1/fastbutton?url=http%3A%2F%2Fwww.scm-manager.org%2F&amp;size=tall&amp;count=true&amp;annotation=&amp;hl=en-US&amp;jsh=r%3Bgc%2F23803279-4555db52#id=I1_1315911840392&amp;parent=http%3A%2F%2Fwww.scm-manager.org&amp;rpctoken=169464098&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe" name="I1_1315911840392" marginwidth="0" marginheight="0" id="I1_1315911840392" hspace="0" allowtransparency="true"></iframe></div>
+                    </div>
+                    <div class="socialicons" style="float:left;margin-right: 8px;">
+                      <iframe scrolling="no" frameborder="0" allowtransparency="true" src="http://platform.twitter.com/widgets/tweet_button.html#_=1315911839879&amp;count=vertical&amp;id=twitter_tweet_button_0&amp;lang=en&amp;original_referer=http%3A%2F%2Fwww.scm-manager.org%2F&amp;text=SCM-Manager%20%7C%20The%20easiest%20way%20to%20share%20your%20Git%2C%20Mercurial%20and%20Subversion%20repositories%20over%20http.&amp;url=http%3A%2F%2Fwww.scm-manager.org" class="twitter-share-button twitter-count-vertical" style="width: 55px; height: 62px;" title="Twitter For Websites: Tweet Button"></iframe><script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
+                    </div>
+                    <div style="clear: both;"></div>
+                  </div>
+                </li>
+
+                <script type="text/javascript">
+                  (function() {
+                    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
+                    po.src = 'https://apis.google.com/js/plusone.js';
+                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
+                  })();
+                </script>
+                <li class="widget-container widget_links">
+                  <h3 class="widget-title">Donate</h3>
+                  <form method="post" action="https://www.paypal.com/cgi-bin/webscr">
+                    <input type="hidden" value="_s-xclick" name="cmd">
+                    <input type="hidden" value="GLUQJWKA7EPDE" name="hosted_button_id">
+                    <input type="image" border="0" alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif">
+                    <img width="1" height="1" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" alt="">
+                  </form>
+                </li>
+                <li class="widget-container widget_links">
+                  <h3 class="widget-title">Build and test</h3>
+                  <a href="https://scm-manager.ci.cloudbees.com/">
+                    <img alt="Cloudbees" src="http://static-www.cloudbees.com/images/badges/BuiltOnDEV.png">
+                  </a>
+                </li>
+              </ul>
+            </div>
+          </div>
+        </div>
+      </div>
+      <footer id="colophon">
+        <div class="col-width">
+          <div id="site-generator">
+            <p>&copy; Sebastian Sdorra</p>
+          </div>
+        </div>
+      </footer>
+    </div>
+  </body>
+</html>

File scm-plugin-backend/src/main/webapp/WEB-INF/ftl/template/header.html

+<!--
+
+    Copyright (c) 2010, Sebastian Sdorra
+    All rights reserved.
+
+    Redistribution and use in source and binary forms, with or without
+    modification, are permitted provided that the following conditions are met:
+
+    1. Redistributions of source code must retain the above copyright notice,
+       this list of conditions and the following disclaimer.
+    2. Redistributions in binary form must reproduce the above copyright notice,
+       this list of conditions and the following disclaimer in the documentation
+       and/or other materials provided with the distribution.
+    3. Neither the name of SCM-Manager; nor the names of its
+       contributors may be used to endorse or promote products derived from this
+       software without specific prior written permission.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+    DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
+    DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+    ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+    http://bitbucket.org/sdorra/scm-manager
+
+
+-->
+
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+    
+    <title>SCM-Manager Plugin-Backend</title>
+    <link rel="stylesheet" type="text/css" media="all" href="http://www.scm-manager.org/wp-content/themes/portfolio-press/style.css" />
+    <link rel="stylesheet" type="text/css" media="all" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" />
+    <link rel="stylesheet" type="text/css" media="all" href="${contextPath}/template/fancybox/jquery.fancybox-1.3.4.css" />
+    <link rel="stylesheet" type="text/css" media="all" href="${contextPath}/template/css/custom.css" />
+    <link rel="shortcut icon" href="http://www.scm-manager.org/wp-content/uploads/2011/12/favicon_16x16px_transparent.png"/>
+    <link rel='stylesheet' id='portfoliopress_open_sans-css'  href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600' type='text/css' media='screen' />
+    <link rel='stylesheet' id='portfoliopress_rokkitt-css'  href='http://fonts.googleapis.com/css?family=Rokkitt:400,700' type='text/css' media='screen' />
+    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
+    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
+    <script type="text/javascript" src="${contextPath}/template/js/jquery.feed.js"></script>
+    <script type="text/javascript" src="${contextPath}/template/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
+    <!--[if lt IE 9]>
+      <script src="${contextPath}template/js/html5.js"></script>
+    <![endif]-->
+    <base href="${contextPath}" />
+    <#if configuration.trackingCode??>
+      <script type="text/javascript">
+
+        var _gaq = _gaq || [];
+        _gaq.push(['_setAccount', '${configuration.trackingCode}']);
+        _gaq.push(['_trackPageview']);
+
+        (function() {
+          var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+          ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+        })();
+
+      </script>
+    </#if>
+  </head>
+  <body class="home page page-id-8 page-template-default logged-in admin-bar layout-2cr">
+    <div id="wrapper">
+      <header id="branding">
+        <div class="col-width">
+          <hgroup id="logo">
+            <h1 id="site-title">
+              <a href="http://www.scm-manager.org/" title="SCM-Manager" rel="home">
+                <img src="http://www.scm-manager.org/wp-content/uploads/2012/10/scm-manager_logo_neg2-300x74.jpg" alt="SCM-Manager" />
+              </a>
+            </h1>
+          </hgroup>
+          <nav id="navigation">
+            <h1 class="screen-reader-text">Main menu</h1>
+            <div class="skip-link screen-reader-text"><a title="Skip to content" href="#content">Skip to content</a></div>
+
+            <div class="menu">
+              <ul class="sf-js-enabled">
+                <li class="page_item">
+                  <a href="http://www.scm-manager.org/" title="Home">Home</a>
+                </li>
+                <li class="page_item">
+                  <a href="http://www.scm-manager.org/news/">News</a>
+                </li>
+                <li class="current_page_item">
+                  <a href="http://plugins.scm-manager.org/scm-plugin-backend/page/index.html">Plugins</a>
+                </li>
+                <li class="page_item">
+                  <a href="http://www.scm-manager.org/screenshots/">Screenshots</a>
+                </li>
+                <li class="page_item">
+                  <a href="http://www.scm-manager.org/videos/">Videos</a>
+                </li>
+              </ul>
+            </div>
+          </nav>
+        </div>
+      </header>
+      <div id="main">
+        <div class="col-width">
+          <div id="primary">
+            <div id="content">
+              <article class="page type-page status-publish hentry">
+                <header class="entry-header">
+                  <h1 class="entry-title">${title}</h1>
+                </header>
+                <div class="entry-content">
+                  <!-- content begin -->
+                  

File scm-plugin-backend/src/main/webapp/detail.html

-<#include "template/header.html">
-
-<p>${latest.description}</p>
-
-<h2>Plugin Informations</h2>
-
-<table>
-  <tr>
-    <th>Name</th>
-    <td>${latest.name}</td>
-  </tr>
-  <tr>
-    <th>Category</th>
-    <td>
-      <#if latest.category??>
-        ${latest.category}
-      <#else>
-        Miscellaneous
-      </#if>
-    </td>
-  </tr>
-  <tr>
-    <th>GroupId</th>
-    <td>${latest.groupId}</td>
-  </tr>
-  <tr>
-    <th>ArtifactId</th>
-    <td>${latest.artifactId}</td>
-  </tr>
-  <tr>
-    <th>Author</th>
-    <td>${latest.author}</td>
-  </tr>
-  <#if latest.url??>
-  <tr>
-    <th>URL</th>
-    <td>
-      <a href="${latest.url}" target="_blank">
-        ${latest.url}
-      </a>
-    </td>
-  </tr>
-  </#if>
-  <#if latest.wiki??>
-  <tr>
-    <th>Wiki</th>
-    <td>
-      <a href="${latest.wiki}" target="_blank">
-        ${latest.wiki}
-      </a>
-    </td>
-  </tr>
-  </#if>
-</table>
-
-<p>&nbsp;</p>
-
-<#if latest.screenshots??>
-  <div class="screenshots">
-    <#list latest.screenshots as screenshot>
-      <a class="screenshot" href="${screenshot}">
-        <#if latest.screenshots?size == 1>
-          <#assign size="l">
-        <#elseif latest.screenshots?size == 2>
-          <#assign size="m">
-        <#else>
-          <#assign size="s">
-        </#if>
-        <img class="screenshot" src="${contextPath}/page/screenshot/${latest.groupId}/${latest.artifactId}/${screenshot_index}/${size}.jpg" alt="screenshot" />
-      </a>
-    </#list>
-  </div>
-
-  <script type="text/javascript">
-    $(document).ready(function(){
-      $('a.screenshot').fancybox();
-    });
-  </script>
-
-  <p>&nbsp;</p>
-  
-</#if>
-
-<h2>Plugin Versions</h2>
-
-<div id="accordion">
-<#if versions?has_content>
-  <#list versions as versionWrapper>
-    <#assign version=versionWrapper.plugin>
-    <h3><a href="#">${version.version}</a></h3>
-    <div>
-      <p>${version.description}</p>
-      <#if version.condition??>
-        <h4>Conditions</h4>
-        <ul>
-          <#if version.condition.minVersion??>
-          <li>Minimum Version: ${version.condition.minVersion}</li>
-          </#if>
-          <#if version.condition.os??>
-          <li>
-            Operatingsystems:
-            <#list version.condition.os as os>
-              ${os}<#if os_has_next>, </#if>
-            </#list>
-          </li>
-          </#if>
-          <#if version.condition.arch??>
-          <li>Architecture: ${version.condition.arch}</li>
-          </#if>
-        </ul>
-      </#if>
-      <#if versionWrapper.compareUrl??>
-        <a href="${versionWrapper.compareUrl}" target="_blank" style="color: #1C94C4;">
-          compare
-        </a>
-      </#if>
-    </div>
-  </#list>
-<#else>
-  Plugin not yet released
-</#if>
-</div>
-
-<p>&nbsp;</p>
-
-<a href="${contextPath}/page/index.html">Overview</a>
-
-<script type="text/javascript">
-  jQuery(document).ready(function(){
-    $( "#accordion" ).accordion({
-      active: false
-    });
-  });
-</script>
-
-<#include "template/footer.html">

File scm-plugin-backend/src/main/webapp/index.html

-<#include "template/header.html">
-
-<div id="categories">
-<#list categories as category>
-  <div style="padding-bottom: 20px">
-    <h2>${category.name}</h2>
-    <div class="plugins">
-      <#list category.plugins as plugin>
-        <h3><a href="#">${plugin.name}</a></h3>
-        <div>
-          ${plugin.description}<br />
-          <a href="${contextPath}/page/detail/${plugin.groupId}/${plugin.artifactId}.html" style="color: #1C94C4;">more</a>
-        </div>
-      </#list>
-    </div>
-  </div>
-</#list>
-</div>
-
-<script type="text/javascript">
-  jQuery(document).ready(function(){
-    $( "div.plugins" ).accordion({
-      active: false
-    });
-  });
-</script>
-
-<#include "template/footer.html">

File scm-plugin-backend/src/main/webapp/template/footer.html

-                  <!-- content end -->
-                </div>
-              </article>        
-            </div>
-            <div class="primary" id="sidebar">
-              <ul class="xoxo">
-                <li id="linkcat-3" class="widget-container widget_links">
-                  <h3 class="widget-title">Links</h3>
-                  <ul class="xoxo blogroll">
-                    <li>
-                      <a href="https://bitbucket.org/sdorra/scm-manager/wiki/download" target="_blank">Download</a>
-                    </li>
-                    <li>
-                      <a href="https://bitbucket.org/sdorra/scm-manager/issues?status=new&amp;status=open" target="_blank">Issue Tracker</a>
-                    </li>
-                    <li>
-                      <a href="http://groups.google.com/group/scmmanager" target="_blank">Mailing List</a>
-                    </li>
-                    <li>
-                      <a href="https://bitbucket.org/sdorra/scm-manager/wiki" target="_blank">Wiki</a>
-                    </li>
-                  </ul>
-                </li>
-                <li class="widget-container widget_recent_entries">
-                  <h3 class="widget-title">Latest News</h3>
-                  <div id="news"></div>
-                  <script type="text/javascript">
-                  $(document).ready(function(){
-                    $('#news').feeds('${contextPath}/news', {
-                      loadingImage: '${contextPath}/template/css/images/load.gif',
-                      maxItems: 3
-                    });
-                  });
-                </script>
-                </li> 
-                <li class="widget-container widget_links">
-                  <h3 class="widget-title">Social</h3>
-                  <div id="social4i" style="position: relative; display: block;">
-                    <div class="socialicons" style="float:left;margin-right: 8px;">
-                      <div style="float: left;" id="fb-root" class=" fb_reset">
-                        <div style="position: absolute; top: -10000px; height: 0pt; width: 0pt;"></div>
-                      </div>
-                      <script src="http://connect.facebook.net/en_US/all.js#appId=221636557882194&amp;xfbml=1"></script>
-                      <fb:like font="" show_faces="true" width="52" layout="box_count" send="false" href="http://www.scm-manager.org" class=" fb_edge_widget_with_comment fb_iframe_widget"></fb:like>
-                    </div>
-                    <div class="socialicons" style="float:left;margin-right: 8px;">
-                      <div id="___plusone_0" style="height: 60px; width: 50px; display: inline-block; text-indent: 0pt; margin: 0pt; padding: 0pt; background: none repeat scroll 0% 0% transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline;"><iframe width="100%" scrolling="no" frameborder="0" title="+1" vspace="0" tabindex="-1" style="position: static; left: 0pt; top: 0pt; width: 50px; margin: 0px; border-style: none; height: 60px; visibility: visible;" src="https://plusone.google.com/u/0/_/+1/fastbutton?url=http%3A%2F%2Fwww.scm-manager.org%2F&amp;size=tall&amp;count=true&amp;annotation=&amp;hl=en-US&amp;jsh=r%3Bgc%2F23803279-4555db52#id=I1_1315911840392&amp;parent=http%3A%2F%2Fwww.scm-manager.org&amp;rpctoken=169464098&amp;_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe" name="I1_1315911840392" marginwidth="0" marginheight="0" id="I1_1315911840392" hspace="0" allowtransparency="true"></iframe></div>
-                    </div>
-                    <div class="socialicons" style="float:left;margin-right: 8px;">
-                      <iframe scrolling="no" frameborder="0" allowtransparency="true" src="http://platform.twitter.com/widgets/tweet_button.html#_=1315911839879&amp;count=vertical&amp;id=twitter_tweet_button_0&amp;lang=en&amp;original_referer=http%3A%2F%2Fwww.scm-manager.org%2F&amp;text=SCM-Manager%20%7C%20The%20easiest%20way%20to%20share%20your%20Git%2C%20Mercurial%20and%20Subversion%20repositories%20over%20http.&amp;url=http%3A%2F%2Fwww.scm-manager.org" class="twitter-share-button twitter-count-vertical" style="width: 55px; height: 62px;" title="Twitter For Websites: Tweet Button"></iframe><script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script>
-                    </div>
-                    <div style="clear: both;"></div>
-                  </div>
-                </li>
-
-                <script type="text/javascript">
-                  (function() {
-                    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
-                    po.src = 'https://apis.google.com/js/plusone.js';
-                    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
-                  })();
-                </script>
-                <li class="widget-container widget_links">
-                  <h3 class="widget-title">Donate</h3>
-                  <form method="post" action="https://www.paypal.com/cgi-bin/webscr">
-                    <input type="hidden" value="_s-xclick" name="cmd">
-                    <input type="hidden" value="GLUQJWKA7EPDE" name="hosted_button_id">
-                    <input type="image" border="0" alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif">
-                    <img width="1" height="1" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" alt="">
-                  </form>
-                </li>
-                <li class="widget-container widget_links">
-                  <h3 class="widget-title">Build and test</h3>
-                  <a href="https://scm-manager.ci.cloudbees.com/">
-                    <img alt="Cloudbees" src="http://static-www.cloudbees.com/images/badges/BuiltOnDEV.png">
-                  </a>
-                </li>
-              </ul>
-            </div>
-          </div>
-        </div>
-      </div>
-      <footer id="colophon">
-        <div class="col-width">
-          <div id="site-generator">
-            <p>&copy; Sebastian Sdorra</p>
-          </div>
-        </div>
-      </footer>
-    </div>
-  </body>
-</html>

File scm-plugin-backend/src/main/webapp/template/header.html

-<!--
-
-    Copyright (c) 2010, Sebastian Sdorra
-    All rights reserved.
-
-    Redistribution and use in source and binary forms, with or without
-    modification, are permitted provided that the following conditions are met:
-
-    1. Redistributions of source code must retain the above copyright notice,
-       this list of conditions and the following disclaimer.
-    2. Redistributions in binary form must reproduce the above copyright notice,
-       this list of conditions and the following disclaimer in the documentation
-       and/or other materials provided with the distribution.
-    3. Neither the name of SCM-Manager; nor the names of its
-       contributors may be used to endorse or promote products derived from this
-       software without specific prior written permission.
-
-    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-    DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
-    DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-    ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-    http://bitbucket.org/sdorra/scm-manager
-
-
--->
-
-<!DOCTYPE html>
-<html>
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    
-    <title>SCM-Manager Plugin-Backend</title>
-    <link rel="stylesheet" type="text/css" media="all" href="http://www.scm-manager.org/wp-content/themes/portfolio-press/style.css" />
-    <link rel="stylesheet" type="text/css" media="all" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" />
-    <link rel="stylesheet" type="text/css" media="all" href="${contextPath}/template/fancybox/jquery.fancybox-1.3.4.css" />
-    <link rel="stylesheet" type="text/css" media="all" href="${contextPath}/template/css/custom.css" />
-    <link rel="shortcut icon" href="http://www.scm-manager.org/wp-content/uploads/2011/12/favicon_16x16px_transparent.png"/>
-    <link rel='stylesheet' id='portfoliopress_open_sans-css'  href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600' type='text/css' media='screen' />
-    <link rel='stylesheet' id='portfoliopress_rokkitt-css'  href='http://fonts.googleapis.com/css?family=Rokkitt:400,700' type='text/css' media='screen' />
-    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"></script>
-    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
-    <script type="text/javascript" src="${contextPath}/template/js/jquery.feed.js"></script>
-    <script type="text/javascript" src="${contextPath}/template/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
-    <!--[if lt IE 9]>
-      <script src="${contextPath}template/js/html5.js"></script>
-    <![endif]-->
-    <base href="${contextPath}" />
-    <#if configuration.trackingCode??>
-      <script type="text/javascript">
-
-        var _gaq = _gaq || [];
-        _gaq.push(['_setAccount', '${configuration.trackingCode}']);
-        _gaq.push(['_trackPageview']);
-
-        (function() {
-          var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-          ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-        })();
-
-      </script>
-    </#if>
-  </head>
-  <body class="home page page-id-8 page-template-default logged-in admin-bar layout-2cr">
-    <div id="wrapper">
-      <header id="branding">
-        <div class="col-width">
-          <hgroup id="logo">
-            <h1 id="site-title">
-              <a href="http://www.scm-manager.org/" title="SCM-Manager" rel="home">
-                <img src="http://www.scm-manager.org/wp-content/uploads/2012/10/scm-manager_logo_neg2-300x74.jpg" alt="SCM-Manager" />
-              </a>
-            </h1>
-          </hgroup>
-          <nav id="navigation">
-            <h1 class="screen-reader-text">Main menu</h1>
-            <div class="skip-link screen-reader-text"><a title="Skip to content" href="#content">Skip to content</a></div>
-
-            <div class="menu">
-              <ul class="sf-js-enabled">
-                <li class="page_item">
-                  <a href="http://www.scm-manager.org/" title="Home">Home</a>
-                </li>
-                <li class="page_item">
-                  <a href="http://www.scm-manager.org/news/">News</a>
-                </li>
-                <li class="current_page_item">
-                  <a href="http://plugins.scm-manager.org/scm-plugin-backend/page/index.html">Plugins</a>
-                </li>
-                <li class="page_item">
-                  <a href="http://www.scm-manager.org/screenshots/">Screenshots</a>
-                </li>
-                <li class="page_item">
-                  <a href="http://www.scm-manager.org/videos/">Videos</a>
-                </li>
-              </ul>
-            </div>
-          </nav>
-        </div>
-      </header>
-      <div id="main">
-        <div class="col-width">
-          <div id="primary">
-            <div id="content">
-              <article class="page type-page status-publish hentry">
-                <header class="entry-header">
-                  <h1 class="entry-title">${title}</h1>
-                </header>
-                <div class="entry-content">
-                  <!-- content begin -->
-