Changeset 5592


Ignore:
Timestamp:
08/22/14 08:16:18 (10 years ago)
Author:
Twan Goosen
Message:

Created an 'about' page
Fixes #617

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  
    77    <body>
    88        <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>
    2044        </wicket:extend>
    2145    </body>
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/BasePage.html

    r5585 r5592  
    77        <title>CLARIN Virtual Collection Registry</title>
    88        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    9        
     9
    1010        <!-- Bootstrap styles required for CLARIN style to work properly -->
    1111        <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />
    1212        <!-- CLARIN + VCR style compiled from SASS -->
    1313        <link rel="stylesheet" type="text/css" href="css/vcr.css" />
    14        
     14
    1515        <!-- jQuery library for Bootstrap, WiQuery and custom use -->
    1616        <script type="text/javascript" src="//code.jquery.com/jquery-1.11.1.min.js"></script>
     
    5757            <div class="container">
    5858                <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>
    6060                </div>
    6161                <div id="CLARIN_footer_middle">
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/gui/pages/BasePage.java

    r5576 r5592  
    1515
    1616public class BasePage extends WebPage {
    17    
     17
    1818    @SpringBean
    1919    private AdminUsersService adminUsersService;
    20    
     20
    2121    protected BasePage(IModel<?> model) {
    2222        super(model);
     
    3939                AdminPage.class));
    4040        add(menu);
    41        
     41
    4242        add(new FeedbackPanel("feedback"));
    43        
     43
    4444        add(new BookmarkablePageLink("homelink", getApplication().getHomePage())
    4545                .setAutoEnable(false));
     46        add(new BookmarkablePageLink("aboutlink", AboutPage.class)
     47                .setAutoEnable(false));
     48
    4649    }
    47    
     50
    4851    protected BasePage() {
    4952        this(null);
    5053    }
    51    
     54
    5255    @Override
    5356    protected void onBeforeRender() {
     
    8285        super.onBeforeRender();
    8386    }
    84    
     87
    8588    protected Principal getUser() {
    8689        ApplicationSession session = (ApplicationSession) getSession();
     
    9194        return principal;
    9295    }
    93    
     96
    9497    protected boolean isUserAdmin() {
    9598        final String userName = getUser().getName();
    9699        return userName != null && adminUsersService.isAdmin(userName);
    97100    }
    98    
     101
    99102    @Override
    100103    public ApplicationSession getSession() {
    101104        return (ApplicationSession) super.getSession();
    102105    }
    103    
     106
    104107} // class BasePage
Note: See TracChangeset for help on using the changeset viewer.