mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 14:46:05 +10:00
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
= form_for @appearance, url: admin_appearances_path, html: { class: 'form-horizontal'} do |f|
|
|
- if @appearance.errors.any?
|
|
.alert.alert-danger
|
|
- @appearance.errors.full_messages.each do |msg|
|
|
%p= msg
|
|
|
|
.form-group
|
|
= f.label :title, class: 'control-label'
|
|
.col-sm-10
|
|
= f.text_field :title, class: "form-control"
|
|
.form-group
|
|
= f.label :description, class: 'control-label'
|
|
.col-sm-10
|
|
= f.text_area :description, class: "form-control", rows: 10
|
|
.hint
|
|
Description parsed with #{link_to "GitLab Flavored Markdown", help_page_path('markdown', 'markdown'), target: '_blank'}.
|
|
.form-group
|
|
= f.label :logo, class: 'control-label'
|
|
.col-sm-10
|
|
- if @appearance.logo?
|
|
= image_tag @appearance.logo, class: 'appearance-logo-preview'
|
|
= f.file_field :logo, class: ""
|
|
.hint
|
|
Maximum logo size is 1MB, page optimized for logo size 640x360px
|
|
.form-actions
|
|
= f.submit 'Save', class: 'btn btn-save'
|
|
= link_to 'Preview', preview_admin_appearances_path, class: 'btn', target: '_blank'
|
|
|
|
- if @appearance.updated_at
|
|
%span.pull-right
|
|
Last edit #{time_ago_with_tooltip(@appearance.updated_at)}
|