forked from publify/publify
/
titles.html.erb
251 lines (240 loc) · 8.88 KB
/
titles.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<% @page_heading = _("Title settings")%>
<% @page_heading_class = 'icon-settings' %>
<%= error_messages_for 'blog' %>
<%= form_tag :action => 'update' do %>
<fieldset class='form-horizontal'>
<legend><%= _("Home") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_home_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :home_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_home_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :home_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Articles") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_article_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :article_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_article_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :article_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Pages") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_page_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :page_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_page_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :page_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Paginated archives") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_paginated_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :paginated_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_paginated_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :paginated_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Dated archives") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_archives_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :archives_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_archives_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :archives_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Categories") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_category_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :category_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_category_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :category_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Tags") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_tag_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :tag_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_tag_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :tag_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Author page") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_author_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :author_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_author_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :author_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Search results") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_search_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :search_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_search_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :search_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Short statuses lists") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_statuses_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :statuses_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_statuses_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :statuses_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<fieldset class='form-horizontal'>
<legend><%= _("Short statuses") %></legend>
<div class='control-group'>
<label class='control-label' for="setting_status_title_template"><%= _("Title template") %></label>
<div class='controls'>
<%= text_field(:setting, :status_title_template, { :class => 'span5'})%>
</div>
</div>
<div class='control-group'>
<label class='control-label' for="setting_status_desc_template"><%= _("Description template") %></label>
<div class='controls'>
<%= text_area(:setting, :status_desc_template, :rows => 3, :class => 'span5')%>
</div>
</div>
</fieldset>
<h3><%= _("Help on title settings")%></h3>
<p class='help-block'><%= _("These tags can be included in your templates and will be replaced when displaying the page.") %></p>
<table class="table table-striped">
<tr>
<td>%title%</td>
<td><%= _("Replaced with the title of the article/page") %></td>
</tr>
<tr>
<td>%blog_name%</td>
<td><%= _("The blog's name") %></td>
</tr>
<tr>
<td>%blog_subtitle%</td>
<td><%= _("The blog's tagline / description") %></td>
</tr>
<tr>
<td>%excerpt%</td>
<td><%= _("Replaced with the post/page excerpt") %></td>
</tr>
<tr>
<td>%tags%</td>
<td><%= _("Replaced with the article tags (comma separated)") %></td>
</tr>
<tr>
<td>%categories</td>
<td><%= _("Replaced with the article categories (comma separated)") %></td>
</tr>
<tr>
<td>%title</td>
<td><%= _("Replaced with the article/page title") %></td>
</tr>
<tr>
<td>%name%</td>
<td><%= _("Replaced with the category/tag name") %></td>
</tr>
<tr>
<td>%search%</td>
<td><%= _("Replaced with the current search phrase") %></td>
</tr>
<tr>
<td>%currenttime%</td>
<td><%= _("Replaced with the current time") %></td>
</tr>
<tr>
<td>%currentdate%</td>
<td><%= _("Replaced with the current date") %></td>
</tr>
<tr>
<td>%currentmonth%</td>
<td><%= _("Replaced with the current month") %></td>
</tr>
<tr>
<td>%currentyear%</td>
<td><%= _("Replaced with the current year") %></td>
</tr>
<tr>
<td>%page%</td>
<td><%= _("Replaced with the current page number") %></td>
</tr>
<tr>
<td>%date%</td>
<td><%= _("Replaced by the archive date") %></td>
</tr>
<tr>
<td>%body%</td>
<td><%= _("Replaced by the content body") %></td>
</tr>
</table>
<%= save_settings %>
<%= hidden_field_tag 'from', 'titles' %>
<% end %>