Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit deb714e4
authored
Jul 20, 2014
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now my job here is done, next we need some ui-designer etc
1 parent
94761edb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
116 additions
and
51 deletions
code/MoyaWeb/WebContent/resources/templates/custom_components.css
code/MoyaWeb/WebContent/resources/templates/template2014/css/skinning.css
code/MoyaWeb/WebContent/resources/templates/template2014/template.xhtml
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n.properties
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
code/MoyaWeb/WebContent/resources/templates/custom_components.css
View file @
deb714e
...
...
@@ -224,6 +224,3 @@ a.shopItem:active {
}
code/MoyaWeb/WebContent/resources/templates/template2014/css/skinning.css
View file @
deb714e
/* This is file for styling (colors and font-sizes) */
.ui-widget
{
font-size
:
9
0
%
!important
;
font-size
:
9
5
%
!important
;
}
...
...
@@ -17,3 +17,43 @@
background-image
:
none
;
}
.missing_i18n
{
color
:
red
;
-webkit-animation-name
:
blinker
;
-webkit-animation-duration
:
1s
;
-webkit-animation-timing-function
:
linear
;
-webkit-animation-iteration-count
:
infinite
;
-moz-animation-name
:
blinker
;
-moz-animation-duration
:
1s
;
-moz-animation-timing-function
:
linear
;
-moz-animation-iteration-count
:
infinite
;
animation-name
:
blinker
;
animation-duration
:
1s
;
animation-timing-function
:
linear
;
animation-iteration-count
:
infinite
;
}
@-moz-keyframes
blinker
{
0
%
{
opacity
:
1.0
;
}
50
%
{
opacity
:
0.0
;
}
100
%
{
opacity
:
1.0
;
}
}
@-webkit-keyframes
blinker
{
0
%
{
opacity
:
1.0
;
}
50
%
{
opacity
:
0.0
;
}
100
%
{
opacity
:
1.0
;
}
}
@keyframes
blinker
{
0
%
{
opacity
:
1.0
;
}
50
%
{
opacity
:
0.0
;
}
100
%
{
opacity
:
1.0
;
}
}
code/MoyaWeb/WebContent/resources/templates/template2014/template.xhtml
View file @
deb714e
...
...
@@ -71,47 +71,48 @@
<p:layout
fullPage=
"true"
id=
"mainlayoutpanel"
>
<p:layoutUnit
id=
"toppanel"
position=
"north"
styleClass=
"bgColor1"
size=
"60"
>
<div
id=
"header_box"
>
<div
id=
"header_left"
>
<h:link
outcome=
"/index"
>
<c:choose>
<c:when
test=
"#{sessionHandler.isInDevelopmentMode()}"
>
<img
src=
"#{request.contextPath}/resources/templates/insomnia2/img/devel_logo.png"
/>
</c:when>
<c:otherwise>
<p:graphicImage
rendered=
"#{layoutView.headerIsImage}"
value=
"#{layoutView.headerimage}"
/>
<ui:fragment
rendered=
"#{!layoutView.headerIsImage}"
>
<h1>
<h:outputText
value=
"#{layoutView.headertext}"
/>
</h1>
</ui:fragment>
</c:otherwise>
</c:choose>
</h:link>
</div>
<div
id=
"header_center"
>
<ui:fragment
rendered=
"#{layoutView.canManageContent}"
>
<div>
<h:form>
<h:outputLabel
for=
"manageBtn"
value=
"#{i18n['content.showContentEditLinks']}"
/>
<h:selectBooleanCheckbox
value=
"#{sessionStore.manageContentLinks}"
onclick=
"this.form.submit()"
/>
</h:form>
</div>
</ui:fragment>
</div>
<div
id=
"header_right"
>
<a
href=
"http://www.codecrew.fi"
><img
src=
"#{request.contextPath}/resources/templates/template1/img/moya_logo.png"
/>
</a>
</div>
<p:layoutUnit
id=
"toppanel"
position=
"north"
styleClass=
"bgColor1"
size=
"60"
>
<div
id=
"header_box"
>
<div
id=
"header_left"
>
<h:link
outcome=
"/index"
>
<c:choose>
<c:when
test=
"#{sessionHandler.isInDevelopmentMode()}"
>
<img
src=
"#{request.contextPath}/resources/templates/insomnia2/img/devel_logo.png"
/>
</c:when>
<c:otherwise>
<p:graphicImage
rendered=
"#{layoutView.headerIsImage}"
value=
"#{layoutView.headerimage}"
/>
<ui:fragment
rendered=
"#{!layoutView.headerIsImage}"
>
<h1>
<h:outputText
value=
"#{layoutView.headertext}"
/>
</h1>
</ui:fragment>
</c:otherwise>
</c:choose>
</h:link>
</div>
<div
id=
"header_center"
>
<ui:fragment
rendered=
"#{layoutView.canManageContent}"
>
<div>
<h:form>
<h:outputLabel
for=
"manageBtn"
value=
"#{i18n['content.showContentEditLinks']}"
/>
<h:selectBooleanCheckbox
value=
"#{sessionStore.manageContentLinks}"
onclick=
"this.form.submit()"
/>
</h:form>
</div>
</ui:fragment>
</div>
<div
id=
"header_right"
>
<a
href=
"http://www.codecrew.fi"
><img
src=
"#{request.contextPath}/resources/templates/template1/img/moya_logo.png"
/>
</a>
</div>
</div>
</p:layoutUnit>
<p:layoutUnit
header=
"Menu**"
collapsible=
"true"
id=
"leftpanel"
position=
"west"
resizable=
"true"
>
<p:layoutUnit
header=
"#{i18n['menu']}"
collapsible=
"true"
id=
"leftpanel"
position=
"west"
resizable=
"true"
size=
"190"
>
<nav>
<p:panelMenu
model=
"#{primeMenuView.menuModel}"
/>
<h:link
style=
"font-size: 10px;"
rendered=
"#{readerView.shopToOthers}"
outcome=
"/shop/showReaderEvents"
value=
"Readers"
/>
...
...
@@ -134,15 +135,18 @@
</h:link>
</div>
<!-- TODO: tyyleistys tähän, toisaalta tarttis tulla vaan teksti -->
<ui:insert
name=
"title"
/>
<p:menubar
rendered=
"#{primeMenuView.hasSecondaryMenu}"
model=
"#{primeMenuView.secondaryMenuModel}"
/>
<h:form
id=
"messages"
>
<p:growl
id=
"growl"
showDetail=
"true"
sticky=
"true"
/>
</h:form>
<p:messages
severity=
"info"
/>
<!-- TODO -->
<ui:insert
name=
"edittab"
/>
<!-- ??? -->
<ui:repeat
var=
"cont1"
value=
"#{menuView.getPagecontent('top')}"
>
<h:outputText
value=
"#{cont1.content}"
escape=
"false"
/>
...
...
@@ -160,7 +164,7 @@
</p:layoutUnit>
<p:layoutUnit
header=
"
User**
"
resizable=
"true"
collapsible=
"true"
id=
"rightpanel"
position=
"east"
>
<p:layoutUnit
header=
"
#{i18n['user.info']}
"
resizable=
"true"
collapsible=
"true"
id=
"rightpanel"
position=
"east"
>
...
...
@@ -193,11 +197,11 @@
<br
/>
<p:fieldset
legend=
"
Select Mode**
"
rendered=
"#{menuView.renderTopmenuChanger}"
>
<p:fieldset
legend=
"
#{i18n['mode.title']}
"
rendered=
"#{menuView.renderTopmenuChanger}"
>
<h:form>
<p:button
outcome=
"/index"
value=
"
käyttäjänäkymä**
"
/>
<p:button
outcome=
"/index"
value=
"
#{i18n['mode.user']}
"
/>
<br
/>
<p:button
outcome=
"/useradmin/list"
value=
"
ylläpitonäkymä**
"
/>
<p:button
outcome=
"/useradmin/list"
value=
"
#{i18n['mode.admin']}
"
/>
</h:form>
</p:fieldset>
</p:layoutUnit>
...
...
@@ -261,6 +265,16 @@
allDayText
:
'Koko päivä'
};
</script>
<c:if
test=
"#{sessionHandler.isInDevelopmentMode()}"
>
<script
type=
"text/javascript"
>
$
(
'*:contains("???"):not(:has(*))'
).
filter
(
function
()
{
return
(
this
.
textContent
||
this
.
innerText
)
.
indexOf
(
"???"
)
===
0
;
}).
addClass
(
"missing_i18n"
);
</script>
</c:if>
</h:body>
</f:view>
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n.properties
View file @
deb714e
...
...
@@ -267,6 +267,12 @@ manageparticipants.title = Osallistujat
map.id
=
#
menu
=
Valikko
mode.admin
=
Yll
\u
00E4piton
\u
00E4kym
\u
00E4
mode.title
=
N
\u
00E4kym
\u
00E4
mode.user
=
K
\u
00E4ytt
\u
00E4j
\u
00E4n
\u
00E4kym
\u
00E4
navi.auth.login
=
frontpage
navi.auth.loginerror
=
frontpage
navi.auth.logout
=
frontpage
...
...
@@ -352,6 +358,7 @@ topnavi.userlectures = Kurssit ja luennot
user.cropImage
=
Crop
user.imageUpload.imageNotFound
=
Select image to upload
user.info
=
K
\u
00E4ytt
\u
00E4j
\u
00E4
user.saveUserSelectableRoles
=
Tallenna
user.shirt.L
=
Unisex L
user.shirt.LadyL
=
Ladyfit L
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
View file @
deb714e
...
...
@@ -683,6 +683,8 @@ mapView.notEnoughCreditsToReserve = You don't have enough credits to reserve thi
mapedit.save
=
Save map changes
menu
=
Menu
menu.index
=
Index
menu.item
=
Item
menu.name
=
Name
...
...
@@ -698,6 +700,10 @@ menuitem.navigation.key = Product flag
menulist.header
=
Menulist
mode.admin
=
Adminmode
mode.title
=
Select mode
mode.user
=
Usermode
nasty.user
=
Go away!
networkassociation.action
=
Action
...
...
@@ -1430,6 +1436,7 @@ user.imageCropRefresh = Refresh page
user.imageTooBig
=
Image is too big
user.imagelist
=
Saved images
user.imagesubmit
=
Send image
user.info
=
User
user.insert
=
Insert
user.insertToken
=
Insert token
user.invalidLoginCredentials
=
Invalid user credentials
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
View file @
deb714e
This diff is collapsed.
Click to expand it.
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