wide/views/preference.html

116 lines
5.5 KiB
HTML
Raw Permalink Normal View History

2014-11-16 15:45:12 +03:00
<div class="preference">
<div class="tabs">
<div class="current" data-index="appearence">
<span title="{{.i18n.appearence}}">{{.i18n.appearence}}</span>
</div>
<div data-index="editor">
<span title="{{.i18n.editor}}">{{.i18n.editor}}</span>
</div>
<div data-index="gotool">
<span title="{{.i18n.gotool}}">{{.i18n.gotool}}</span>
</div>
2015-05-11 10:46:17 +03:00
<div data-index="keymap">
<span title="{{.i18n.keymap}}">{{.i18n.keymap}}</span>
</div>
2014-11-16 15:45:12 +03:00
<div data-index="user">
<span title="{{.i18n.user}}">{{.i18n.user}}</span>
</div>
</div>
<div class="tabs-panel">
<div data-index="appearence">
<label>
{{.i18n.font}}{{.i18n.colon}}
2014-11-17 09:15:28 +03:00
<input data-value="{{.user.FontFamily}}" value="{{.user.FontFamily}}" name="fontFamily"/>
2014-11-16 15:45:12 +03:00
</label>
<label>
{{.i18n.font_size}}{{.i18n.colon}}
2014-11-17 09:15:28 +03:00
<input data-value="{{.user.FontSize}}" value="{{.user.FontSize}}" name="fontSize"/>
2014-11-16 15:45:12 +03:00
</label>
2014-11-30 05:18:17 +03:00
<label>
{{.i18n.theme}}{{.i18n.colon}}
2014-12-08 10:18:28 +03:00
<select class="select" name="theme" data-value="{{.user.Theme}}">
2014-11-30 05:18:17 +03:00
{{range $index, $theme := .themes }}
2014-12-08 10:18:28 +03:00
<option value="{{$theme}}" {{if eq $.user.Theme $theme}}selected="selected"{{end}}>{{$theme}}</option>
2014-11-30 05:18:17 +03:00
{{end}}
</select>
</label>
2014-11-16 15:45:12 +03:00
</div>
<div class="fn-none" data-index="editor">
<label>
{{.i18n.font}}{{.i18n.colon}}
2014-11-17 09:15:28 +03:00
<input data-value="{{.user.Editor.FontFamily}}" value="{{.user.Editor.FontFamily}}" name="editorFontFamily"/>
2014-11-16 15:45:12 +03:00
</label>
<label>
{{.i18n.font_size}}{{.i18n.colon}}
2014-11-17 09:15:28 +03:00
<input data-value="{{.user.Editor.FontSize}}" value="{{.user.Editor.FontSize}}" name="editorFontSize"/>
</label>
<label>
{{.i18n.line_height}}{{.i18n.colon}}
2014-11-17 09:44:04 +03:00
<input data-value="{{.user.Editor.LineHeight}}" value="{{.user.Editor.LineHeight}}" name="editorLineHeight"/>
2014-11-16 15:45:12 +03:00
</label>
2014-12-01 09:49:16 +03:00
<label>
{{.i18n.tab_size}}{{.i18n.colon}}
<input data-value="{{.user.Editor.TabSize}}" value="{{.user.Editor.TabSize}}" name="editorTabSize"/>
</label>
2014-11-30 05:18:17 +03:00
<label>
{{.i18n.theme}}{{.i18n.colon}}
2014-12-08 10:18:28 +03:00
<select class="select" name="editorTheme" data-value="{{.user.Editor.Theme}}">
2014-11-30 05:18:17 +03:00
{{range $index, $theme := .editorThemes }}
2014-12-08 10:18:28 +03:00
<option value="{{$theme}}" {{if eq $.user.Editor.Theme $theme}}selected="selected"{{end}}>{{$theme}}</option>
2014-11-30 05:18:17 +03:00
{{end}}
</select>
</label>
2014-11-16 15:45:12 +03:00
</div>
<div class="fn-none" data-index="gotool">
<label>
{{.i18n.go_format}}{{.i18n.colon}}
2014-12-08 10:18:28 +03:00
<select class="select" data-value="{{.user.GoFormat}}" name="goFmt">
2014-11-26 06:54:01 +03:00
{{range $index, $gofmt := .gofmts }}
<option name="{{$gofmt}}" value="{{$gofmt}}" {{if eq $.user.GoFormat $gofmt}}selected="selected"{{end}}>{{$gofmt}}</option>
{{end}}
</select>
2014-11-16 15:45:12 +03:00
</label>
<label>
2017-03-27 04:37:28 +03:00
Go Build Args Linux{{.i18n.colon}}
<input data-value="{{.user.GoBuildArgsForLinux}}" value="{{.user.GoBuildArgsForLinux}}" name="GoBuildArgsForLinux"/>
2017-03-27 04:37:28 +03:00
</label>
<label>
Go Build Args Windows{{.i18n.colon}}
<input data-value="{{.user.GoBuildArgsForWindows}}" value="{{.user.GoBuildArgsForWindows}}" name="GoBuildArgsForWindows"/>
2017-03-27 04:37:28 +03:00
</label>
<label>
Go Build Args Darwin{{.i18n.colon}}
<input data-value="{{.user.GoBuildArgsForDarwin}}" value="{{.user.GoBuildArgsForDarwin}}" name="GoBuildArgsForDarwin"/>
</label>
2014-11-16 15:45:12 +03:00
</div>
2015-05-11 10:46:17 +03:00
<div class="fn-none" data-index="keymap">
<label>
{{.i18n.keymap}}{{.i18n.colon}}
<select class="select" data-value="{{.user.Keymap}}" name="keymap">
<option name="wide" value="wide" {{if eq $.user.Keymap "wide"}}selected="selected"{{end}}>wide</option>
<option name="vim" value="vim" {{if eq $.user.Keymap "vim"}}selected="selected"{{end}}>vim</option>
</select>
</label>
</div>
2014-11-16 15:45:12 +03:00
<div class="fn-none" data-index="user">
<label>
{{.i18n.locale}}{{.i18n.colon}}
2014-12-08 10:18:28 +03:00
<select class="select" name="locale" data-value="{{.user.Locale}}">
2014-11-26 06:24:24 +03:00
{{range $index, $localeName := .locales }}
2014-11-26 06:54:01 +03:00
<option name="{{$localeName}}" value="{{$localeName}}" {{if eq $.user.Locale $localeName}}selected="selected"{{end}}>{{$localeName}}</option>
2014-11-26 06:24:24 +03:00
{{end}}
</select>
2014-11-16 15:45:12 +03:00
</label>
2014-11-26 06:24:24 +03:00
<input data-value="{{.user.Locale}}" value="{{.user.Locale}}" name="locale" hidden="hidden" />
2014-11-16 15:45:12 +03:00
<label>
{{.i18n.workspace}}{{.i18n.colon}}
<input data-value="{{.user.Workspace}}" value="{{.user.Workspace}}" name="workspace" readonly="readonly" />
2014-11-16 15:45:12 +03:00
</label>
2014-12-14 07:20:39 +03:00
<label class="fn-clear">
2019-05-17 07:17:58 +03:00
<img onerror="this.src='/static/images/user-thumbnail.png'" src="{{.user.Gravatar}}" title="{{.user.Name}}" class='gravatar'/>
2014-12-14 07:20:39 +03:00
</label>
2014-11-16 15:45:12 +03:00
</div>
</div>
2014-12-08 10:18:28 +03:00
</div>
2017-03-27 04:37:28 +03:00
<div class="tip ft-red"></div>