Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Commit 3ff5efe

Browse files
committed
Show full theme titles
Show the full title of a proposal's theme in the edit and view displays for a theme.
1 parent d2851bb commit 3ff5efe

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

data/i18n/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@
181181

182182
"reviews-notes": "Reviewer notes",
183183

184+
"theme-": "No theme specified",
185+
"theme-online": "Online community organizing",
184186
"theme-online": "Online community organizing",
185187
"theme-offline": "Offline outreach & partnerships",
186188
"theme-tool": "Tools",

data/templates/proposals/edit.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<input type="hidden" name="id" value="{{ id }}" />
2828
{{ forms.text( ctx, 'proposals-edit-title', 'title', { 'required':true } ) }}
2929
{{ forms.url( ctx, 'proposals-edit-url', 'url', { 'required':true } ) }}
30-
{{ forms.select( ctx, 'proposals-edit-theme', 'theme', { 'online':'online', 'offline':'offline', 'tool':'tool', 'research':'research' }, { 'required':true } ) }}
30+
{{ forms.select( ctx, 'proposals-edit-theme', 'theme', { 'online':'theme-online'|message, 'offline':'theme-offline'|message, 'tool':'theme-tool'|message, 'research':'theme-research'|message }, { 'required':true } ) }}
3131
{{ forms.number( ctx, 'proposals-edit-amount', 'amount' ) }}
3232
{{ forms.textArea( ctx, 'proposals-edit-description', 'description', { 'elmclass':'monospace' } ) }}
3333
{{ forms.textArea( ctx, 'proposals-edit-notes', 'notes', { 'elmclass':'monospace' } ) }}

data/templates/proposals/view.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2 class="panel-title">
2222
<a href="{{ proposal.url|raw }}" target="_blank">{{ proposal.url }}</a>
2323
</li>
2424
<li><strong>{{ 'proposals-view-theme'|message }}</strong>&nbsp;
25-
{{ proposal.theme }}
25+
{{ "theme-#{proposal.theme}"|message }}
2626
</li>
2727
<li><strong>{{ 'proposals-view-amount'|message }}</strong>&nbsp;
2828
{{ proposal.amount|number_format }}

0 commit comments

Comments
 (0)