Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 4e3429fe
authored
Sep 01, 2013
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some stuff
1 parent
1248fc3c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
57 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
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/src/fi/codecrew/moya/web/cdiview/user/AuthView.java
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
View file @
4e3429f
...
...
@@ -73,7 +73,7 @@ public class MenuBean implements MenuBeanLocal {
logger
.
info
(
"Initializing new default menu"
);
LanEvent
ev
=
eventbean
.
getCurrentEvent
();
MenuNavigation
usermenu
=
new
MenuNavigation
(
ev
,
"top
navi.usernavi
"
,
menusort
=
+
10
);
MenuNavigation
usermenu
=
new
MenuNavigation
(
ev
,
"top
menu.user
"
,
menusort
=
+
10
);
usermenu
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/frontpage"
),
UserPermission
.
ANYUSER
);
usermenu
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/permissionDenied"
),
null
).
setVisible
(
false
);
...
...
@@ -102,7 +102,7 @@ public class MenuBean implements MenuBeanLocal {
MenuNavigation
userPlaces
=
usermenu
.
addPage
(
null
,
null
);
userPlaces
.
setKey
(
"topnavi.userplaces"
);
userPlaces
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/place/placemap"
),
MapPermission
.
VIEW
);
userPlaces
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/place/myGroups"
),
MapPermission
.
VIEW
);
userPlaces
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/place/myGroups"
),
MapPermission
.
BUY_PLACES
);
MenuNavigation
usercompetitions
=
usermenu
.
addPage
(
null
,
null
);
...
...
@@ -134,7 +134,7 @@ public class MenuBean implements MenuBeanLocal {
// Admin menu
//
MenuNavigation
adminmenu
=
new
MenuNavigation
(
ev
,
"top
navi.adminnavi
"
,
menusort
=
+
10
);
MenuNavigation
adminmenu
=
new
MenuNavigation
(
ev
,
"top
menu.admin
"
,
menusort
=
+
10
);
//user management
MenuNavigation
adminuser
=
adminmenu
.
addPage
(
null
,
null
);
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n.properties
View file @
4e3429f
...
...
@@ -81,7 +81,6 @@ bortalApplication.shop.SHOP_TO_OTHERS = Shop to other users
bortalApplication.terminal.CASHIER
=
Access cashier terminal functions
bortalApplication.terminal.CUSTOMER
=
Access client terminal functions
bortalApplication.terminal.SELFHELP
=
Self help terminal
bortalApplication.tournament.SINGLE_ELIMINATION
=
Single Elimination
bortalApplication.user
=
User permissions
bortalApplication.user.ANYUSER
=
All users have this anyways
bortalApplication.user.CREATE_NEW
=
Create new user
...
...
@@ -225,7 +224,7 @@ resetmailSent.header = Email sent
subnavi.cards
=
\u0009\u0009
topnavi.license
=
Lisenssikoodit
topnavi.license
=
Lisenssikoodit
user.cropImage
=
Crop
user.unauthenticated
=
Kirjautumaton
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_en.properties
View file @
4e3429f
...
...
@@ -159,7 +159,6 @@ bortalApplication.shop.SHOP_TO_OTHERS = Shop to other users
bortalApplication.terminal.CASHIER
=
Access cashier terminal functions
bortalApplication.terminal.CUSTOMER
=
Access client terminal functions
bortalApplication.terminal.SELFHELP
=
Self help terminal
bortalApplication.tournament.SINGLE_ELIMINATION
=
Single Elimination
bortalApplication.user
=
User permissions
bortalApplication.user.ANYUSER
=
All users have this anyways
bortalApplication.user.CREATE_NEW
=
Create new user
...
...
@@ -541,10 +540,9 @@ org.hibernate.validator.constraints.Length.message = length must be between {m
org.hibernate.validator.constraints.NotEmpty.message
=
may not be empty
org.hibernate.validator.constraints.Range.message
=
must be between {min} and {max}
orgrole.create
=
Create
orgrole.list.title
=
Organization role list
orgrole.name
=
Name
orgrole.parents
=
Parent
orgrole.create
=
Create
orgrole.name
=
Name
orgrole.parents
=
Parent
page.account.edit.header
=
Edit account events
page.account.list.header
=
Account events
...
...
@@ -984,24 +982,12 @@ topnavi.usermgmt = Users
topnavi.userplaces
=
Computer Places
topnavi.usershop
=
Shop
tournament.admin.create
=
Create new tournament
tournament.create
=
Create tournament
tournament.edit
=
Edit tournament
tournament.game
=
Game
tournament.name
=
Tournament name
tournament.playerspermatch_slash_teamsize
=
Players / team size
tournament.rules
=
Rules
tournament.status
=
Status
tournament.type
=
Type
tournaments.active_tournaments
=
Active tournaments
tournaments.admin.begin_time_constraints
=
Tournament begin time
tournaments.admin.create
=
Create tournament
tournaments.admin.create_a_game
=
Create a game
tournaments.admin.create_new_ruleset
=
Create a new ruleset
tournaments.admin.create_tournament
=
Create a tournament
tournaments.admin.description
=
Manage tournaments
tournaments.admin.edit
=
Edit tournament
tournaments.admin.game_description
=
Game description
tournaments.admin.game_name
=
Game name
tournaments.admin.registration_time_constraints
=
Registration time constraints
...
...
@@ -1009,17 +995,10 @@ tournaments.admin.rules = Rules
tournaments.admin.select_a_game
=
Select a game
tournaments.admin.select_a_ruleset
=
Select a ruleset
tournaments.admin.set_time_constraints
=
Set time constraints
tournaments.admin.title
=
Tournaments management
tournaments.backup_players
=
Max backup players
tournaments.players_per_match
=
Max players per match
tournaments.registration_closes
=
Set registration closing time
tournaments.registration_opens
=
Set registration opening time
tournaments.ruleset_description
=
Ruleset description
tournaments.ruleset_name
=
Ruleset name
tournaments.ruleset_rules
=
Tournament ruleset
tournaments.tournament_details
=
Tournament details
tournaments.tournament_name
=
Tournament name
tournaments.tournament_type
=
Tournament type
user.accountBalance
=
Account balance
user.accountEventHeader
=
Account events
...
...
code/MoyaWeb/src/fi/codecrew/moya/resources/i18n_fi.properties
View file @
4e3429f
...
...
@@ -160,7 +160,6 @@ bortalApplication.shop.SHOP_TO_OTHERS = Saa ostaa tuotteita muille
bortalApplication.terminal.CASHIER
=
Muokata rahastusp
\u
00E4
\u
00E4tteiden toimintoja
bortalApplication.terminal.CUSTOMER
=
Muokata k
\u
00E4vij
\u
00E4p
\u
00E4
\u
00E4tteiden toimintoja
bortalApplication.terminal.SELFHELP
=
Itsepalvelup
\u
00E4
\u
00E4te
bortalApplication.tournament.SINGLE_ELIMINATION
=
Single Elimination
bortalApplication.user
=
K
\u
00E4ytt
\u
00E4j
\u
00E4oikeudet
bortalApplication.user.ANYUSER
=
AINA kaikilla k
\u
00E4ytt
\u
00E4jill
\u
00E4
bortalApplication.user.CREATE_NEW
=
Voi luoda uuden k
\u
00E4ytt
\u
00E4j
\u
00E4n
...
...
@@ -550,10 +549,9 @@ org.hibernate.validator.constraints.Length.message = length must be between {m
org.hibernate.validator.constraints.NotEmpty.message
=
may not be empty
org.hibernate.validator.constraints.Range.message
=
must be between {min} and {max}
orgrole.create
=
Luo
orgrole.list.title
=
Lista organisaation rooleista
orgrole.name
=
Nimi
orgrole.parents
=
Periytyy
orgrole.create
=
Luo
orgrole.name
=
Nimi
orgrole.parents
=
Periytyy
page.account.edit.header
=
Muokkaa tilitapahtumia
page.account.list.header
=
Tilitapahtumat
...
...
@@ -967,24 +965,10 @@ topnavi.usermgmt = K\u00E4ytt\u00E4j\u00E4t
topnavi.userplaces
=
Konepaikat
topnavi.usershop
=
Kauppa
tournament.admin.create
=
Luo uusi turnaus
tournament.create
=
Luo turnaus
tournament.edit
=
Muokkaa turnausta
tournament.game
=
Peli
tournament.name
=
Turnauksen nimi
tournament.playerspermatch_slash_teamsize
=
Pelaajat / tiimin koko
tournament.rules
=
S
\u
00E4
\u
00E4nn
\u
00F6t
tournament.status
=
Tilanne
tournament.type
=
Tyyppi
tournaments.active_tournaments
=
Aktiiviset turnaukset
tournaments.admin.begin_time_constraints
=
Turnauksen aloitusaika
tournaments.admin.create
=
Luo turnaus
tournaments.admin.create_a_game
=
Luo peli
tournaments.admin.create_new_ruleset
=
Luo uusi s
\u
00E4
\u
00E4nn
\u
00F6st
\u
00F6
tournaments.admin.create_tournament
=
Luo turnaus
tournaments.admin.description
=
Hallinnoi turnauksia
tournaments.admin.edit
=
Muokkaa turnausta
tournaments.admin.game_description
=
Pelin kuvaus
tournaments.admin.game_name
=
Pelin nimi
tournaments.admin.registration_time_constraints
=
Rekister
\u
00F6itymisaika
...
...
@@ -992,17 +976,10 @@ tournaments.admin.rules = S\u00E4\u00E4nn\u00F6t
tournaments.admin.select_a_game
=
Valitse peli
tournaments.admin.select_a_ruleset
=
Valitse s
\u
00E4
\u
00E4nn
\u
00F6st
\u
00F6
tournaments.admin.set_time_constraints
=
Aseta aikarajat
tournaments.admin.title
=
Turnauksien hallinnointi
tournaments.backup_players
=
Maksimim
\u
00E4
\u
00E4r
\u
00E4 varapelaajia
tournaments.players_per_match
=
Maksimim
\u
00E4
\u
00E4r
\u
00E4 pelaajia matchissa
tournaments.registration_closes
=
Rekister
\u
00F6itymisen sulkeutumisaika
tournaments.registration_opens
=
Rekister
\u
00F6itymisen aukeamisaika
tournaments.ruleset_description
=
S
\u
00E4
\u
00E4nn
\u
00F6st
\u
00F6n kuvaus
tournaments.ruleset_name
=
S
\u
00E4
\u
00E4nn
\u
00F6st
\u
00F6n nimi
tournaments.ruleset_rules
=
Turnauksen s
\u
00E4
\u
00E4nn
\u
00F6t
tournaments.tournament_details
=
Turnauksen yksityiskohdat
tournaments.tournament_name
=
Turnauksen nimi
tournaments.tournament_type
=
Turnauksen tyyppi
user.accountBalance
=
Tilin saldo
user.accountEventHeader
=
Tilitapahtumat
...
...
code/MoyaWeb/src/fi/codecrew/moya/web/cdiview/user/AuthView.java
View file @
4e3429f
...
...
@@ -56,7 +56,7 @@ public class AuthView extends GenericCDIView {
req
.
getSession
().
invalidate
();
navihandler
.
forward
(
"/
index
"
);
navihandler
.
forward
(
"/
frontpage
"
);
}
...
...
@@ -72,7 +72,9 @@ public class AuthView extends GenericCDIView {
req
.
getSession
().
invalidate
();
return
"/index"
;
navihandler
.
forward
(
"/frontpage"
);
return
"/frontpage"
;
}
public
void
executeLogin
()
{
...
...
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