Changeset 5592
- Timestamp:
- 08/22/14 08:16:18 (10 years ago)
- Location:
- VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages
- Files:
-
- 1 added
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/AboutPage.html
r5579 r5592 7 7 <body> 8 8 <wicket:extend> 9 <h1>VCR administration</h1> 10 <form wicket:id="spaceSelectForm"> 11 <label for="space">Collections space:</label> 12 <select id="space" wicket:id="space"> 13 <option>Public</option> 14 <option>User 1</option> 15 <option>User 2</option> 16 </select> 17 <input type="submit" value="Select" /> 18 </form> 19 <wicket:container wicket:id="collections">[collections]</wicket:container> 9 <h1>About the Virtual Collection Registry</h1> 10 <p> 11 The Virtual Collection Registry (VCR) was developed for 12 CLARIN at <a href="http://www.ids-mannheim.de/">The Institute 13 for the German Language (IDS)</a> and the 14 <a href="http://www.clarin.eu">CLARIN 15 <abbr title="European Research Infrastructure Consortium"> 16 ERIC</abbr> 17 </a>. 18 </p> 19 <p> 20 The VCR was developed by: 21 <ul> 22 <li>Oliver Schonefeld (IDS)</li> 23 <li>Twan Goosen (CLARIN ERIC)</li> 24 </ul> 25 </p> 26 <h2>Licenses</h2> 27 <p> 28 The VCR is made available under the 29 <a href="http://www.gnu.org/licenses/gpl-3.0.html">GPL 3.0</a> 30 license. 31 </p> 32 <p> 33 It uses the following software components: 34 <ul> 35 <li><a href="http://wicket.apache.org">Apache Wicket</a> (<a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License 2.0</a>)</li> 36 <li><a href="https://jersey.java.net/">Jersey</a> (<a href="https://jersey.java.net/license.html#cddl">CCDL 1.1</a>)</li> 37 <li><a href="http://projects.spring.io/spring-framework/">Spring Framework</a> (<a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License 2.0</a>)</li> 38 <li><a href="http://getbootstrap.com/">Bootstrap</a> (<a href="https://github.com/twbs/bootstrap/blob/master/LICENSE">MIT license</a>)</li> 39 <li><a href="http://jquery.org/license/">jQuery</a> (<a href="https://jquery.org/license/">MIT license</a>)</li> 40 <li><a href="https://code.google.com/p/wiquery/">WiQuery</a> (<a href="http://opensource.org/licenses/mit-license.php">MIT license</a>)</li> 41 <li><a href="http://glyphicons.com/">GLYPHICONS free</a> (<a href="http://glyphicons.com/license/">CC-BY 3.0</a>)</li> 42 </ul> 43 </p> 20 44 </wicket:extend> 21 45 </body> -
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/BasePage.html
r5585 r5592 7 7 <title>CLARIN Virtual Collection Registry</title> 8 8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 9 9 10 10 <!-- Bootstrap styles required for CLARIN style to work properly --> 11 11 <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" /> 12 12 <!-- CLARIN + VCR style compiled from SASS --> 13 13 <link rel="stylesheet" type="text/css" href="css/vcr.css" /> 14 14 15 15 <!-- jQuery library for Bootstrap, WiQuery and custom use --> 16 16 <script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script> … … 57 57 <div class="container"> 58 58 <div id="CLARIN_footer_left"> 59 <a title="about" href="?view=about"><span>VERSION ${pom.version} </span><span class="glyphicon glyphicon-info-sign"></span></a>59 <a title="about" wicket:id="aboutlink"><span>VERSION ${pom.version} </span><span class="glyphicon glyphicon-info-sign"></span></a> 60 60 </div> 61 61 <div id="CLARIN_footer_middle"> -
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/BasePage.java
r5576 r5592 15 15 16 16 public class BasePage extends WebPage { 17 17 18 18 @SpringBean 19 19 private AdminUsersService adminUsersService; 20 20 21 21 protected BasePage(IModel<?> model) { 22 22 super(model); … … 39 39 AdminPage.class)); 40 40 add(menu); 41 41 42 42 add(new FeedbackPanel("feedback")); 43 43 44 44 add(new BookmarkablePageLink("homelink", getApplication().getHomePage()) 45 45 .setAutoEnable(false)); 46 add(new BookmarkablePageLink("aboutlink", AboutPage.class) 47 .setAutoEnable(false)); 48 46 49 } 47 50 48 51 protected BasePage() { 49 52 this(null); 50 53 } 51 54 52 55 @Override 53 56 protected void onBeforeRender() { … … 82 85 super.onBeforeRender(); 83 86 } 84 87 85 88 protected Principal getUser() { 86 89 ApplicationSession session = (ApplicationSession) getSession(); … … 91 94 return principal; 92 95 } 93 96 94 97 protected boolean isUserAdmin() { 95 98 final String userName = getUser().getName(); 96 99 return userName != null && adminUsersService.isAdmin(userName); 97 100 } 98 101 99 102 @Override 100 103 public ApplicationSession getSession() { 101 104 return (ApplicationSession) super.getSession(); 102 105 } 103 106 104 107 } // class BasePage
Note: See TracChangeset
for help on using the changeset viewer.