Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 6ce8b38

Browse files
author
Matt Karl
committed
Standardized permission names, fixed Editor permission for releases
1 parent 9f64c05 commit 6ce8b38

File tree

15 files changed

+36
-31
lines changed

15 files changed

+36
-31
lines changed

app/public/js/embed.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/public/js/libraries.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/public/js/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/views/games/modal-group.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
.modal-body
1313
table.table.table-striped.table-bordered
1414
thead: tr
15-
th.text-center Normal
16-
th.text-center Producer
15+
th.text-center Read
16+
th.text-center Write
1717
th.text-center Admin
1818
tbody: tr
1919
td.text-center: input(name="selectPermission" value="0" type="radio" checked=true)

app/views/games/modal-release.jade

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
th.text-center: label(for="statusDev") Dev
2222
th.text-center: label(for="statusQA") QA
2323
th.text-center: label(for="statusStage") Stage
24-
th.text-center: label(for="statusProd") Prod
24+
if isAdmin
25+
th.text-center: label(for="statusProd") Prod
2526
tbody: tr
2627
td: input#statusDev(type="radio" name="status" value="dev" checked=true)
2728
td: input#statusQA(type="radio" name="status" value="qa")
2829
td: input#statusStage(type="radio" name="status" value="stage")
29-
td: input#statusProd(type="radio" name="status" value="prod")
30+
if isAdmin
31+
td: input#statusProd(type="radio" name="status" value="prod")
3032
.form-group
3133
label.col-sm-3.control-label(for="notes") Notes
3234
.col-sm-9

app/views/games/privileges.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ append gameContent
1515
table.table.table-striped
1616
thead: tr
1717
th Group
18-
th.text-center Normal
18+
th.text-center Read
1919
|
2020
a(href="#" data-placement="top" data-toggle="popover" data-trigger="focus" data-content="Users or groups can access games but not edit or add releases")
2121
span.glyphicon.glyphicon-question-sign
22-
th.text-center Producer
22+
th.text-center Write
2323
|
2424
a(href="#" data-placement="top" data-toggle="popover" data-trigger="focus" data-content="Users or groups can manages releases and game properties")
2525
span.glyphicon.glyphicon-question-sign

app/views/games/release.jade

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ append gameContent
2222
th.text-center: label(for="statusDev") Dev
2323
th.text-center: label(for="statusQA") QA
2424
th.text-center: label(for="statusStage") Stage
25-
th.text-center: label(for="statusProd") Prod
25+
if isAdmin
26+
th.text-center: label(for="statusProd") Prod
2627
tbody: tr
2728
td: input#statusDev(type="radio" name="status" value="dev" checked=(release.status == "dev"))
2829
td: input#statusQA(type="radio" name="status" value="qa" checked=(release.status == "qa"))
2930
td: input#statusStage(type="radio" name="status" value="stage" checked=(release.status == "stage"))
30-
td: input#statusProd(type="radio" name="status" value="prod" checked=(release.status == "prod"))
31+
if isAdmin
32+
td: input#statusProd(type="radio" name="status" value="prod" checked=(release.status == "prod"))
3133
.form-group
3234
label.col-sm-3.control-label(for="notes") Notes
3335
.col-sm-9

app/views/games/releases-controls.jade

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
form.controls.pull-right(action="/games/game/#{game.slug}/releases" method="post")
2-
input(type="hidden" name="release" value=release._id)
3-
input(type="hidden" name="action" value="removeRelease")
4-
button.btn.btn-block.btn-default.dropdown-toggle(data-toggle="confirm" type="submit")
5-
span.glyphicon.glyphicon-trash
1+
if isEditor
2+
form.controls.pull-right(action="/games/game/#{game.slug}/releases" method="post")
3+
input(type="hidden" name="release" value=release._id)
4+
input(type="hidden" name="action" value="removeRelease")
5+
button.btn.btn-block.btn-default.dropdown-toggle(data-toggle="confirm" type="submit")
6+
span.glyphicon.glyphicon-trash
67
form.controls.pull-right(action="/games/game/#{game.slug}/release" method="post")
78
input(type="hidden" name="release" value=release._id)
89
input(type="hidden" name="action" value="selectRelease")

app/views/home.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ append content
1111
.list-group
1212
for game in games
1313
a.list-group-item(href="/games/game/#{game.slug}")=game.title
14-
span.hidden-xs.help-inline=game.bundleId
14+
span.hidden-xs.help-inline=game.slug
1515
span.badge=game.releases.length
1616
form.panel.panel-default(method="post" action=url)
1717
.panel-heading

app/views/users/add.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ append content
4343
.col-sm-9
4444
.radio: label
4545
input(type='radio' name='privilege' value="0" checked=true)
46-
| Normal
46+
| Read
4747
span.help-inline Default user privilege
4848
.radio: label
4949
input(type='radio' name='privilege' value="1")
50-
| Editor
50+
| Write
5151
span.help-inline Ability to manage games
5252
.radio: label
5353
input(type='radio' name='privilege' value="2")
54-
| Administrator
54+
| Admin
5555
span.help-inline Ability to manage games, users and groups
5656
.form-group.form-actions.text-center
5757
.col-sm-9.col-sm-offset-3

0 commit comments

Comments
 (0)