Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cda2c192
authored
Mar 07, 2011
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kopioitu insomnia1 template stream1
1 parent
86d1a3dd
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
360 additions
and
0 deletions
code/LanBortalWeb/WebContent/layout/stream1/sidebar-admin.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-frontpage.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-game.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-login.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-placemap.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-poll.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-rfidshop.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-shop.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-user.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebartemplate.xhtml
code/LanBortalWeb/WebContent/layout/stream1/template.xhtml
code/LanBortalWeb/WebContent/layout/stream1/sidebar-admin.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
>
<h:body>
<ui:composition
rendered=
"#{sessionHandler.loggedIn}"
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"true"
/>
<ui:define
name=
"sidebarcontent"
>
<ul>
<tools:canRead
target=
"ROLE_MANAGEMENT"
>
<li><h:outputText
styleClass=
"sidebartitle"
value=
"#{i18n['sidebar.roles']}"
/>
<ul>
<li><h:link
outcome=
"/role/create"
value=
"#{i18n['sidebar.role.create']}"
/></li>
<li><h:link
outcome=
"/role/list"
value=
"#{i18n['sidebar.role.list']}"
/></li>
<li><h:link
outcome=
"/user/createCardTemplate"
value=
"#{i18n['sidebar.cardTemplate.create']}"
/></li>
<li><h:link
outcome=
"/user/listCardTemplates"
value=
"#{i18n['sidebar.cardTemplate.list']}"
/></li>
</ul>
</li>
</tools:canRead>
<tools:canRead
target=
"BILL"
>
<li><h:outputText
styleClass=
"sidebartitle"
value=
"#{i18n['sidebar.bills']}"
/>
<ul>
<li><h:link
outcome=
"/bill/listAll"
value=
"#{i18n['sidebar.bill.listAll']}"
/></li>
<li><h:link
outcome=
"/bill/billSummary"
value=
"#{i18n['sidebar.bill.summary']}"
/></li>
</ul>
</li>
</tools:canRead>
<tools:canRead
target=
"USER_MANAGEMENT"
>
<li><h:outputText
styleClass=
"sidebartitle"
value=
"#{i18n['sidebar.users']}"
/>
<ul>
<li><h:link
outcome=
"/user/create"
value=
"#{i18n['sidebar.user.create']}"
/></li>
<li><h:link
outcome=
"/user/list"
value=
"#{i18n['sidebar.user.list']}"
/></li>
</ul>
</li>
</tools:canRead>
<tools:canRead
target=
"PRODUCT"
>
<li><h:outputText
styleClass=
"sidebartitle"
value=
"#{i18n['sidebar.products']}"
/>
<ul>
<li><h:link
outcome=
"/product/create"
value=
"#{i18n['sidebar.product.create']}"
/></li>
<li><h:link
outcome=
"/product/list"
value=
"#{i18n['sidebar.product.list']}"
/></li>
</ul>
</li>
</tools:canRead>
<tools:canRead
target=
"MAP"
>
<li><h:outputText
styleClass=
"sidebartitle"
value=
"#{i18n['sidebar.maps']}"
/>
<ul>
<li><h:link
outcome=
"/map/list"
value=
"#{i18n['sidebar.map.list']}"
/></li>
</ul>
</li>
</tools:canRead>
<li><h:outputText
styleClass=
"sidebartitle"
value=
"#{i18n['sidebar.other']}"
/>
<ul>
<li><h:link
outcome=
"/eventorg/list"
value=
"#{i18n['sidebar.eventorg.list']}"
/></li>
<li><h:link
outcome=
"/utils/flushCache"
value=
"#{i18n['sidebar.utils.flushCache']}"
/></li>
<li><h:link
outcome=
"/generateTestData"
value=
"#{i18n['sidebar.utils.testdata']}"
/></li>
</ul>
</li>
</ul>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-frontpage.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"#{!sessionHandler.isLoggedIn()}"
/>
<ui:define
name=
"sidebarcontent"
>
<ul>
<li><h:link
outcome=
"/user/create.xhtml"
value=
"#{i18n['sidebar.createuser']}"
/></li>
</ul>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-game.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"false"
/>
<ui:define
name=
"sidebarcontent"
>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-login.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:define
name=
"sidebarcontent"
>
<ul>
<li><h:link
outcome=
"/user/create.xhtml"
value=
"#{i18n['sidebar.user.create']}"
/></li>
</ul>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-placemap.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"false"
/>
<ui:define
name=
"sidebarcontent"
>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-poll.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"false"
/>
<ui:define
name=
"sidebarcontent"
>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-rfidshop.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"true"
/>
<ui:define
name=
"sidebarcontent"
>
<ul>
<li><h:link
outcome=
"/shop/listReaders"
value=
"#{i18n['sidebar.shop.readerlist']}"
/></li>
<li><h:link
outcome=
"/shop/showReaderEvents"
value=
"#{i18n['sidebar.shop.readerEvents']}"
/></li>
</ul>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-shop.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"true"
/>
<ui:define
name=
"sidebarcontent"
>
<ul>
<li><h:link
outcome=
"/bill/list"
value=
"#{i18n['sidebar.bill.list']}"
/></li>
</ul>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebar-user.xhtml
0 → 100644
View file @
cda2c19
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<h:body>
<ui:composition
template=
"/layout/insomnia1/sidebartemplate.xhtml"
>
<ui:param
name=
"rendered"
value=
"#{sessionHandler.isLoggedIn()}"
/>
<ui:define
name=
"sidebarcontent"
>
<ul>
<li><h:link
outcome=
"/user/sendPicture"
value=
"#{i18n['user.sendPicture']}"
/></li>
<li><h:link
outcome=
"/user/changePassword"
value=
"#{i18n['user.changePassword']}"
/></li>
<li><h:link
outcome=
"/user/accountEvents"
value=
"#{i18n['user.accountEvents']}"
/></li>
<li><h:link
outcome=
"/place/myGroups"
value=
"#{i18n['user.myGroups']}"
/></li>
<li><h:link
outcome=
"/place/insertToken"
value=
"#{i18n['user.insertToken']}"
/></li>
</ul>
</ui:define>
</ui:composition>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/sidebartemplate.xhtml
0 → 100644
View file @
cda2c19
<!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"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
>
<h:head>
<title></title>
</h:head>
<h:body>
<ui:component>
<c:if
test=
"#{rendered}"
>
<div
id=
"sidebar"
><ui:insert
name=
"sidebarcontent"
/></div>
</c:if>
</ui:component>
</h:body>
</html>
\ No newline at end of file
code/LanBortalWeb/WebContent/layout/stream1/template.xhtml
0 → 100644
View file @
cda2c19
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
xmlns:h=
"http://java.sun.com/jsf/html"
xmlns:f=
"http://java.sun.com/jsf/core"
xmlns:tools=
"http://java.sun.com/jsf/composite/tools"
xmlns:ui=
"http://java.sun.com/jsf/facelets"
xmlns:c=
"http://java.sun.com/jsp/jstl/core"
>
<f:view
locale=
"#{sessionHandler.locale}"
>
<ui:insert
name=
"metadata"
/>
<h:head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<title><h:outputText
value=
"#{i18n['global.eventname']}"
/>
-
<h:outputText
value=
"#{i18n[util.concat(thispage,'.header') ] }"
/></title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"#{request.contextPath}/resources/style/insomnia1/style.css"
/>
</h:head>
<h:body>
<div
id=
"wrapper"
>
<div
id=
"navigation"
>
<div
id=
"topheadercontainer"
><img
id=
"head"
src=
"#{request.contextPath}/resources/style/insomnia1/img/header.gif"
alt=
"headerimage"
/>
<div
style=
"float: left"
>
<div
id=
"headerbox"
><tools:isLoggedIn>
#{sessionHandler.loginname}
</tools:isLoggedIn><tools:loginLogout
/></div>
</div>
</div>
<div
id=
"mainmenu"
>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'frontpage'?'a':''}"
><h:link
outcome=
"/index"
value=
"#{i18n['topmenu.frontpage']}"
/></div>
<tools:isLoggedIn>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'user'?'a':''}"
><h:link
outcome=
"/user/editself"
value=
"#{i18n['topmenu.usersPreferences']}"
/></div>
<!-- <div class="link#{i18n[util.concat(thispage,'.pagegroup')] == 'shop'?'a': ''}"><h:link
outcome="/product/createBill" value="#{i18n['topmenu.shoppings']}" /></div>
-->
</tools:isLoggedIn>
<tools:canExecute
target=
"POLL"
>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'poll'?'a': ''}"
><h:link
outcome=
"/poll/start"
value=
"#{i18n['topmenu.poll']}"
/></div>
</tools:canExecute>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'placemap'?'a':''}"
><h:link
outcome=
"/place/placemap"
value=
"#{i18n['topmenu.placemap']}"
/></div>
<tools:canRead
target=
"USER_MANAGEMENT"
>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'admin'?'a':''}"
><h:link
outcome=
"/product/list"
value=
"#{i18n['topmenu.adminfront']}"
/></div>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'rfidshop'?'a':''}"
><h:link
outcome=
"/shop/showReaderEvents"
value=
"#{i18n['topmenu.rfidshop']}"
/></div>
</tools:canRead>
<tools:canRead
target=
"GAME"
>
<div
class=
"link#{i18n[util.concat(thispage,'.pagegroup')] == 'game'?'a':''}"
><h:link
outcome=
"/game/start"
value=
"#{i18n['topmenu.game']}"
/></div>
</tools:canRead></div>
</div>
<div
id=
"content"
>
<div
id=
"cwrap"
><ui:include
src=
"/layout/insomnia1/sidebar-#{i18n[util.concat(thispage,'.pagegroup')]}.xhtml"
/>
<h:messages
globalOnly=
"true"
/>
<ui:insert
name=
"content"
/></div>
</div>
<div
id=
"footer"
>
#{i18n['global.copyright']}
</div>
</div>
</h:body>
</f:view>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment