Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Commit

Permalink
- CHG: Inlined the SVGs to minimize the actual code and number of files.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-raubach committed Jul 3, 2018
1 parent 0f92f67 commit 6863f9a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1,007 deletions.
22 changes: 0 additions & 22 deletions src/jhi/gatekeeper/client/page/about/AboutView.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
import java.util.*;

import jhi.gatekeeper.client.i18n.*;
import jhi.gatekeeper.client.page.about.resource.*;
import jhi.gatekeeper.client.widget.*;

/**
* @author Sebastian Raubach
Expand All @@ -42,33 +40,13 @@ public class AboutView extends Composite
@UiField
HTML message;

@UiField
AnchorWithContent germinateAnchor;
@UiField
Image germinate;
@UiField
AnchorWithContent huttonAnchor;
@UiField
Image hutton;
@UiField
AnchorWithContent icsAnchor;
@UiField
Image ics;

public AboutView()
{
initWidget(ourUiBinder.createAndBindUi(this));

jsniBanner(banner.getElement());

message.setHTML(I18n.LANG.aboutMessage(I18n.LANG.menuTopForgottenPassword(), DateTimeFormat.getFormat("yyyy").format(new Date())));

germinateAnchor.setHref("https://ics.hutton.ac.uk/get-germinate/");
germinate.setUrl(Resources.INSTANCE.germinate().getSafeUri());
huttonAnchor.setHref("http://www.hutton.ac.uk/");
hutton.setUrl(Resources.INSTANCE.hutton().getSafeUri());
icsAnchor.setHref("https://ics.hutton.ac.uk/");
ics.setUrl(Resources.INSTANCE.ics().getSafeUri());
}

private native void jsniBanner(Element element)/*-{
Expand Down
12 changes: 6 additions & 6 deletions src/jhi/gatekeeper/client/page/about/AboutView.ui.xml

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions src/jhi/gatekeeper/client/page/about/resource/Resources.java

This file was deleted.

Loading

0 comments on commit 6863f9a

Please sign in to comment.