1- < h1 > Create New Site</ h1 >
2-
3- < p class ="is-lead "> Welcome to your new <%= @community . name %> community!</ p >
4-
5- < p > We are almost ready. We just need some more information to complete creation of the site.</ p >
6-
7- < p > Don't worry. You will be able to change all these things in the site settings later.</ p >
8-
9- <%= form_tag setup_save_url do %>
10-
11- < div class ="widget ">
12- < div class ="widget--body ">
13-
14- < h2 > Site Details</ h2 >
15-
16- < div class ="form-group ">
17- <%= label_tag :primary_color , 'Primary color' , class : 'form-element' %>
18- < span class ="form-caption "> Select a primary color for this site. Will be used as default for all categories.</ span >
19- <%= select_tag :primary_color , options_for_select ( [ 'turquoise' , 'green' , 'blue' , 'darkblue' , 'purple' , 'gray' , 'bluegray' , 'yellow' , 'orange' , 'pink' , 'red' ] ,
20- selected : SiteSetting [ 'SiteCategoryHeaderDefaultColor' ] ) ,
21- class : 'form-element' %>
22- </ div >
23-
24- < div class ="form-group ">
25- <%= label_tag :logo_url , 'Site logo URL' , class : 'form-element' %>
26- < span class ="form-caption "> Choose a site logo for this site. Will be shown in the site header.</ span >
27- <%= text_field_tag :logo_url , SiteSetting [ 'SiteLogoPath' ] , class : 'form-element' %>
28- </ div >
29-
30- < div class ="form-group ">
31- <%= label_tag :ad_slogan , 'Site Ad Slogan' , class : 'form-element' %>
32- < span class ="form-caption "> A slogan that will be shown in automatic community ads. See < a href ="/ca "> /ca</ a > for more info.</ span >
33- <%= text_field_tag :ad_slogan , SiteSetting [ 'SiteAdSlogan' ] , class : 'form-element' %>
34- </ div >
35-
36- </ div >
37- </ div >
38- < div class ="widget ">
39- < div class ="widget--body ">
40-
41- < h2 > Additional Features</ h2 >
42-
43- < div class ="form-group ">
44- <%= label_tag :mathjax , 'Enable MathJax' , class : 'form-element' %>
45- < span class ="form-caption "> MathJax is a library for rendering mathematic formulas. This will incur a small penalty in page loading time.</ span >
46- <%= select_tag :mathjax , options_for_select ( [ [ 'yes' , true ] , [ 'no' , false ] ] , selected : SiteSetting [ 'MathJaxEnabled' ] ) ,
47- class : 'form-element' %>
48- </ div >
49-
50- < div class ="form-group ">
51- <%= label_tag :syntax_highlighting , 'Enable Syntax Highlighting' , class : 'form-element' %>
52- < span class ="form-caption "> We support highlighting of code blocks using highlight.js. This will incur a small penalty in page loading time.</ span >
53- <%= select_tag :syntax_highlighting , options_for_select ( [ [ 'yes' , true ] , [ 'no' , false ] ] , selected : SiteSetting [ 'SyntaxHighlightingEnabled' ] ) ,
54- class : 'form-element' %>
55- </ div >
56-
57- </ div >
58- </ div >
59- < div class ="widget ">
60- < div class ="widget--body ">
61-
62- < h2 > Integrations</ h2 >
63-
64- < div class ="form-group ">
65- <%= label_tag :chat_link , 'Community chat link' , class : 'form-element' %>
66- < span class ="form-caption "> Link to a possible community chat. Can be kept empty if not needed.</ span >
67- <%= text_field_tag :chat_link , SiteSetting [ 'ChatLink' ] , class : 'form-element' %>
68- </ div >
69-
70- < div class ="form-group ">
71- <%= label_tag :analytics_url , 'Analytics URL' , class : 'form-element' %>
72- < span class ="form-caption "> Full URL to a Matomo analytics instance, with leading protocol and trailing slash.</ span >
73- <%= text_field_tag :analytics_url , SiteSetting [ 'AnalyticsURL' ] , class : 'form-element' %>
74- </ div >
75-
76- < div class ="form-group ">
77- <%= label_tag :analytics_id , 'Analytics Site ID' , class : 'form-element' %>
78- < span class ="form-caption "> Site ID for this community in your Matomo analytics instance.</ span >
79- <%= text_field_tag :analytics_id , SiteSetting [ 'AnalyticsSiteId' ] , class : 'form-element' %>
80- </ div >
81-
82- < div class ="form-group ">
83- <%= label_tag :content_transfer , 'Has content transfer?' , class : 'form-element' %>
84- < span class ="form-caption "> Whether this site has transferred content from an other (ex. SE) site. Will allow users to claim their content in the profile.</ span >
85- <%= select_tag :content_transfer , options_for_select ( [ [ 'yes' , true ] , [ 'no' , false ] ] , selected : SiteSetting [ 'AllowContentTransfer' ] ) ,
86- class : 'form-element' %>
87- </ div >
88-
89- </ div >
90- </ div >
91-
92- <%= submit_tag 'Save and continue' , class : 'button is-filled' %>
93-
1+ < h1 > Create New Site</ h1 >
2+
3+ < p class ="is-lead "> Welcome to your new <%= @community . name %> community!</ p >
4+
5+ < p > We are almost ready. We just need some more information to complete creation of the site.</ p >
6+
7+ < p > Don't worry. You will be able to change all these things in the site settings later.</ p >
8+
9+ <%= form_tag setup_save_url do %>
10+
11+ < div class ="widget ">
12+ < div class ="widget--body ">
13+
14+ < h2 > Site Details</ h2 >
15+
16+ < div class ="form-group ">
17+ <%= label_tag :primary_color , 'Primary color' , class : 'form-element' %>
18+ < span class ="form-caption "> Select a primary color for this site. Will be used as default for all categories.</ span >
19+ <%= select_tag :primary_color , options_for_select ( [ 'turquoise' , 'green' , 'blue' , 'darkblue' , 'purple' , 'gray' , 'bluegray' , 'yellow' , 'orange' , 'pink' , 'red' ] ,
20+ selected : SiteSetting [ 'SiteCategoryHeaderDefaultColor' ] ) ,
21+ class : 'form-element' %>
22+ </ div >
23+
24+ < div class ="form-group ">
25+ <%= label_tag :logo_url , 'Site logo URL' , class : 'form-element' %>
26+ < span class ="form-caption "> Choose a site logo for this site. Will be shown in the site header.</ span >
27+ <%= text_field_tag :logo_url , SiteSetting [ 'SiteLogoPath' ] , class : 'form-element' %>
28+ </ div >
29+
30+ < div class ="form-group ">
31+ <%= label_tag :ad_slogan , 'Site Ad Slogan' , class : 'form-element' %>
32+ < span class ="form-caption "> A slogan that will be shown in automatic community ads. See < a href ="/ca "> /ca</ a > for more info.</ span >
33+ <%= text_field_tag :ad_slogan , SiteSetting [ 'SiteAdSlogan' ] , class : 'form-element' %>
34+ </ div >
35+
36+ </ div >
37+ </ div >
38+ < div class ="widget ">
39+ < div class ="widget--body ">
40+
41+ < h2 > Additional Features</ h2 >
42+
43+ < div class ="form-group ">
44+ <%= label_tag :mathjax , 'Enable MathJax' , class : 'form-element' %>
45+ < span class ="form-caption "> MathJax is a library for rendering mathematic formulas. This will incur a small penalty in page loading time.</ span >
46+ <%= select_tag :mathjax , options_for_select ( [ [ 'yes' , true ] , [ 'no' , false ] ] , selected : SiteSetting [ 'MathJaxEnabled' ] ) ,
47+ class : 'form-element' %>
48+ </ div >
49+
50+ < div class ="form-group ">
51+ <%= label_tag :syntax_highlighting , 'Enable Syntax Highlighting' , class : 'form-element' %>
52+ < span class ="form-caption "> We support highlighting of code blocks using highlight.js. This will incur a small penalty in page loading time.</ span >
53+ <%= select_tag :syntax_highlighting , options_for_select ( [ [ 'yes' , true ] , [ 'no' , false ] ] , selected : SiteSetting [ 'SyntaxHighlightingEnabled' ] ) ,
54+ class : 'form-element' %>
55+ </ div >
56+
57+ </ div >
58+ </ div >
59+ < div class ="widget ">
60+ < div class ="widget--body ">
61+
62+ < h2 > Integrations</ h2 >
63+
64+ < div class ="form-group ">
65+ <%= label_tag :chat_link , 'Community chat link' , class : 'form-element' %>
66+ < span class ="form-caption "> Link to a possible community chat. Can be kept empty if not needed.</ span >
67+ <%= text_field_tag :chat_link , SiteSetting [ 'ChatLink' ] , class : 'form-element' %>
68+ </ div >
69+
70+ < div class ="form-group ">
71+ <%= label_tag :analytics_url , 'Analytics URL' , class : 'form-element' %>
72+ < span class ="form-caption "> Full URL to a Matomo analytics instance, with leading protocol and trailing slash.</ span >
73+ <%= text_field_tag :analytics_url , SiteSetting [ 'AnalyticsURL' ] , class : 'form-element' %>
74+ </ div >
75+
76+ < div class ="form-group ">
77+ <%= label_tag :analytics_id , 'Analytics Site ID' , class : 'form-element' %>
78+ < span class ="form-caption "> Site ID for this community in your Matomo analytics instance.</ span >
79+ <%= text_field_tag :analytics_id , SiteSetting [ 'AnalyticsSiteId' ] , class : 'form-element' %>
80+ </ div >
81+
82+ < div class ="form-group ">
83+ <%= label_tag :content_transfer , 'Has content transfer?' , class : 'form-element' %>
84+ < span class ="form-caption "> Whether this site has transferred content from an other (ex. SE) site. Will allow users to claim their content in the profile.</ span >
85+ <%= select_tag :content_transfer , options_for_select ( [ [ 'yes' , true ] , [ 'no' , false ] ] , selected : SiteSetting [ 'AllowContentTransfer' ] ) ,
86+ class : 'form-element' %>
87+ </ div >
88+
89+ </ div >
90+ </ div >
91+
92+ <%= submit_tag 'Save and continue' , class : 'button is-filled' %>
93+
9494<% end %>
0 commit comments