-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NAS-2520: Added some layout to some of the pages.
- Loading branch information
Showing
5 changed files
with
227 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 28 additions & 1 deletion
29
...er/harvester-core/src/main/java/dk/netarkivet/harvester/webinterface/servlet/NASUser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,32 @@ | ||
package dk.netarkivet.harvester.webinterface.servlet; | ||
|
||
public class NASUser { | ||
import javax.servlet.http.HttpServletRequest; | ||
|
||
import com.antiaction.common.templateengine.login.LoginTemplateUser; | ||
|
||
public class NASUser implements LoginTemplateUser { | ||
|
||
public String id; | ||
|
||
public String username; | ||
|
||
public boolean active = false; | ||
|
||
public static NASUser getAdminByCredentials(String id, String password) { | ||
return getDefaultUser(); | ||
} | ||
|
||
@Override | ||
public String get_cookie_token(HttpServletRequest req) { | ||
return null; // Not needed to further implement at the moment | ||
} | ||
|
||
public static NASUser getDefaultUser() { | ||
NASUser u = new NASUser(); | ||
u.active=true; | ||
u.id = "svc@kb.dk"; | ||
u.username="admin"; | ||
return u; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<meta content="text/html; charset=UTF-8" http-equiv= "content-type" /><meta http-equiv="Expires" content="0"/> | ||
<meta http-equiv="Cache-Control" content="no-cache"/> | ||
<meta http-equiv="Pragma" content="no-cache"/> | ||
<meta http-equiv="refresh" content="60"/> | ||
<title><placeholder id ="title" /></title> | ||
<script type="text/javascript"> | ||
<!-- | ||
function giveFocus() { | ||
var e = document.getElementById('focusElement'); | ||
if (e != null) { | ||
var elms = e.getElementsByTagName('*'); | ||
if (elms != null && elms.length != null && elms.item != null && elms.length > 0) { | ||
var e2 = elms.item(0); | ||
if (e2 != null && e2.focus != null) { | ||
} | ||
e2.focus(); | ||
} | ||
} | ||
} | ||
--> | ||
</script> | ||
|
||
<link rel="stylesheet" href="/History/netarkivet.css" type="text/css" /> | ||
<link rel="stylesheet" href="/History/jscalendar/calendar-win2k-cold-1.css" title="/History/jscalendar/win2k-cold-1" type="text/css" media="all" /> | ||
</head> | ||
<body onload="giveFocus()"> | ||
<table id ="main_table"> | ||
<tr> | ||
<td valign="top" id="menu"> | ||
<table id="menu_table"> | ||
<tr><td><a class="sidebarHeader" href="index.jsp"><img src="/History/transparent_menu_logo.png" alt="Menu"/> Menu</a></td></tr> | ||
<tr><td><a href="/HarvestDefinition/Definitions-selective-harvests.jsp">Definitions</a></td> | ||
</tr><tr><td><a href="/History/Harveststatus-alljobs.jsp">Harvest status</a></td> | ||
</tr><tr><td> <a href="/History/Harveststatus-alljobs.jsp"> All Jobs</a></td> | ||
</tr><tr><td> <a href="/History/Harveststatus-deprecatedperdomain.jsp"> All Jobs per domain</a></td> | ||
</tr><tr><td> <a href="/History/Harveststatus-running.jsp"> Running Jobs</a></td> | ||
</tr><tr><td><a href="/HarvestChannel/HarvestChannel-edit-harvest-mappings.jsp">Harvest Channels</a></td> | ||
</tr><tr><td><a href="/BitPreservation/Bitpreservation-filestatus.jsp">Bitpreservation</a></td> | ||
</tr><tr><td><a href="/QA/QA-status.jsp">Quality Assurance</a></td> | ||
</tr><tr><td><a href="/Status/Monitor-JMXsummary.jsp">Systemstate</a></td> | ||
</tr></table> | ||
</td> | ||
<td valign = "top" > | ||
<div class="languagelinks"><a href="lang.jsp?locale=da&name=Dansk">Dansk</a> <a href="lang.jsp?locale=en&name=English">English</a> <a href="lang.jsp?locale=de&name=Deutsch">Deutsch</a> <a href="lang.jsp?locale=it&name=Italiano">Italiano</a> <a href="lang.jsp?locale=fr&name=Fran%C3%A7ais">Français</a> </div> | ||
|
||
<h3 class="page_heading"><placeholder id="heading" /></h3> | ||
|
||
<placeholder id="content" /> | ||
|
||
</td> | ||
</tr> | ||
</table> | ||
<div class='systeminfo'>NetarchiveSuite <placeholder id="version" />, <placeholder id="environment" /></div> | ||
</body> | ||
</html> |