publify_core 10.0.0 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +52 -1
- data/app/assets/javascripts/markup_help_popup.js +25 -0
- data/app/assets/javascripts/optional_field_toggle.js +7 -0
- data/app/assets/javascripts/preview_comment.js +10 -0
- data/app/assets/javascripts/publify.js +3 -0
- data/app/assets/javascripts/publify_admin.js +1 -25
- data/app/assets/javascripts/spinnable.js +7 -2
- data/app/assets/stylesheets/administration_structure.css.scss +1 -1
- data/app/assets/stylesheets/publify.css.scss +43 -0
- data/app/assets/stylesheets/publify_admin.css.scss +0 -1
- data/app/controllers/admin/articles_controller.rb +4 -4
- data/app/controllers/admin/dashboard_controller.rb +0 -4
- data/app/controllers/admin/post_types_controller.rb +1 -1
- data/app/controllers/admin/themes_controller.rb +1 -9
- data/app/controllers/articles_controller.rb +5 -3
- data/app/controllers/comments_controller.rb +1 -1
- data/app/controllers/setup_controller.rb +20 -11
- data/app/helpers/admin/feedback_helper.rb +1 -1
- data/app/helpers/base_helper.rb +21 -13
- data/app/models/archives_sidebar.rb +1 -1
- data/app/models/article.rb +1 -2
- data/app/models/content.rb +8 -3
- data/app/models/note.rb +1 -1
- data/app/models/redirect.rb +2 -2
- data/app/models/tag_sidebar.rb +25 -3
- data/app/models/text_filter.rb +1 -1
- data/app/uploaders/resource_uploader.rb +4 -10
- data/app/views/admin/articles/_form.html.erb +2 -2
- data/app/views/admin/articles/index.html.erb +4 -5
- data/app/views/admin/dashboard/_comment.html.erb +1 -1
- data/app/views/admin/dashboard/_drafts.html.erb +1 -1
- data/app/views/admin/feedback/_ham.html.erb +1 -1
- data/app/views/admin/feedback/article.html.erb +1 -1
- data/app/views/admin/feedback/edit.html.erb +1 -1
- data/app/views/admin/feedback/index.html.erb +2 -2
- data/app/views/admin/migrations/show.html.erb +1 -1
- data/app/views/admin/notes/_form.html.erb +2 -3
- data/app/views/admin/notes/_note.html.erb +2 -2
- data/app/views/admin/notes/edit.html.erb +0 -1
- data/app/views/admin/pages/_pages.html.erb +1 -1
- data/app/views/admin/post_types/_index_and_form.html.erb +2 -2
- data/app/views/admin/redirects/_index_and_form.html.erb +2 -2
- data/app/views/admin/seo/show.html.erb +1 -1
- data/app/views/admin/settings/display.html.erb +1 -1
- data/app/views/admin/settings/feedback.html.erb +1 -1
- data/app/views/admin/settings/index.html.erb +1 -1
- data/app/views/admin/settings/write.html.erb +1 -1
- data/app/views/admin/tags/_index_and_form.html.erb +1 -1
- data/app/views/admin/users/_form.html.erb +1 -1
- data/app/views/articles/_comment_form.html.erb +9 -7
- data/app/views/articles/_comment_preview.html.erb +1 -1
- data/app/views/articles/_trackback.html.erb +3 -3
- data/app/views/articles/comment_failed.js.erb +1 -1
- data/app/views/articles/read.html.erb +4 -2
- data/app/views/comments/_comment.html.erb +1 -1
- data/app/views/comments/preview.js.erb +1 -1
- data/app/views/devise/passwords/edit.html.erb +3 -3
- data/app/views/devise/passwords/new.html.erb +1 -1
- data/app/views/devise/registrations/new.html.erb +2 -2
- data/app/views/devise/sessions/new.html.erb +2 -2
- data/app/views/devise/shared/_links.html.erb +3 -3
- data/app/views/layouts/accounts.html.erb +3 -3
- data/app/views/layouts/administration.html.erb +4 -6
- data/app/views/layouts/default.html.erb +1 -1
- data/app/views/layouts/editor.html.erb +3 -3
- data/app/views/notes/index.html.erb +1 -1
- data/app/views/notes/show_in_reply.html.erb +1 -1
- data/app/views/notification_mailer/comment.html.erb +1 -1
- data/app/views/search_sidebar/_content.html.erb +2 -3
- data/app/views/settings/install.html.erb +2 -2
- data/app/views/setup/index.html.erb +42 -11
- data/app/views/shared/_page_header.html.erb +5 -5
- data/app/views/tag_sidebar/_content.html.erb +2 -2
- data/config/locales/ar.yml +0 -1
- data/config/locales/da.yml +0 -1
- data/config/locales/de.yml +0 -1
- data/config/locales/en.yml +0 -1
- data/config/locales/es-MX.yml +0 -1
- data/config/locales/fr.yml +0 -1
- data/config/locales/he.yml +0 -1
- data/config/locales/it.yml +0 -1
- data/config/locales/ja.yml +0 -1
- data/config/locales/lt.yml +0 -1
- data/config/locales/nb.yml +0 -1
- data/config/locales/nl.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +0 -1
- data/config/locales/ro.yml +0 -1
- data/config/locales/ru.yml +0 -1
- data/config/locales/zh-CN.yml +0 -1
- data/config/locales/zh-TW.yml +0 -1
- data/db/seeds.rb +5 -5
- data/lib/publify_core/string_ext.rb +52 -0
- data/lib/publify_core/testing_support/feed_assertions.rb +1 -4
- data/lib/publify_core/text_filter/markdown.rb +53 -0
- data/lib/{publify_textfilter_markdown_smartquotes.rb → publify_core/text_filter/markdown_smartquotes.rb} +3 -3
- data/lib/publify_core/text_filter/none.rb +14 -0
- data/lib/publify_core/text_filter/smartypants.rb +14 -0
- data/lib/publify_core/text_filter/twitterfilter.rb +55 -0
- data/lib/publify_core/version.rb +1 -1
- data/lib/publify_core.rb +6 -6
- data/lib/text_filter_plugin.rb +23 -11
- data/lib/theme.rb +18 -7
- metadata +64 -29
- data/app/assets/javascripts/datetimepicker.js +0 -1470
- data/app/assets/stylesheets/datetimepicker.css +0 -306
- data/lib/publify_textfilter_markdown.rb +0 -56
- data/lib/publify_textfilter_none.rb +0 -16
- data/lib/publify_textfilter_smartypants.rb +0 -16
- data/lib/publify_textfilter_twitterfilter.rb +0 -57
- data/lib/transforms.rb +0 -47
@@ -8,7 +8,7 @@
|
|
8
8
|
<%= form_tag({ action: 'index' }, { method: :get, name: 'article', remote: true, class: 'form-inline spinnable', "data-update-success": 'articleList' }) do %>
|
9
9
|
|
10
10
|
<% if params[:search] and params[:search]['state'] %>
|
11
|
-
<input type="hidden" name="search[state]" value="<%= params[:search]['state'] %>"
|
11
|
+
<input type="hidden" name="search[state]" value="<%= params[:search]['state'] %>">
|
12
12
|
<% end %>
|
13
13
|
|
14
14
|
<p>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
</p>
|
21
21
|
|
22
22
|
<div class="panel panel-default">
|
23
|
-
<div class="panel-heading">
|
23
|
+
<div class="panel-heading clearfix">
|
24
24
|
<div class="pull-right">
|
25
25
|
<div class="form-group">
|
26
26
|
<%= select_tag('search[user_id]', options_from_collection_for_select(User.all, 'id', 'name'), prompt: t('.select_an_author'), class: 'form-control') %>
|
@@ -29,14 +29,13 @@
|
|
29
29
|
<%= select_tag('search[published_at]', options_for_select(Article.publication_months), prompt: t('.publication_date'), class: 'form-control') %>
|
30
30
|
</div>
|
31
31
|
<div class="form-group">
|
32
|
-
<input id="search" type="text" name="search[searchstring]" class="form-control"
|
32
|
+
<input id="search" type="text" name="search[searchstring]" class="form-control" autocomplete="off">
|
33
33
|
</div>
|
34
34
|
<div class="form-group">
|
35
35
|
<%= submit_tag(t('.search'), class: 'btn btn-success') %>
|
36
|
-
<span id="spinner"
|
36
|
+
<span id="spinner" class="hidden"><%= image_tag('spinner.gif') %></span>
|
37
37
|
</div>
|
38
38
|
</div>
|
39
|
-
<br style="clear: both" />
|
40
39
|
</div>
|
41
40
|
</div>
|
42
41
|
<table class="table table-hover">
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<td>
|
2
|
-
<input class="feedback_check" type="checkbox" name="feedback_check[<%= comment.id %>]"
|
2
|
+
<input class="feedback_check" type="checkbox" name="feedback_check[<%= comment.id %>]">
|
3
3
|
</td>
|
4
4
|
<td>
|
5
5
|
<%= avatar_tag(email: comment.email, url: comment.url, size: 36, class: 'img-circle') %>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<thead>
|
17
17
|
<tr class='noborder'>
|
18
18
|
<th>
|
19
|
-
<input type="checkbox" name="checkall" id="checkall"
|
19
|
+
<input type="checkbox" name="checkall" id="checkall">
|
20
20
|
</th>
|
21
21
|
<th><%= t(".author") %></th>
|
22
22
|
<th><%= t(".created_at") %></th>
|
@@ -50,7 +50,7 @@
|
|
50
50
|
</div>
|
51
51
|
<div class='row'>
|
52
52
|
<div class='form-group col-md-12'>
|
53
|
-
<hr
|
53
|
+
<hr>
|
54
54
|
<%= t('.action_or_other_html', first_action: link_to(t('.cancel'), action: 'index'), second_action: submit_tag(t('.save'), class: 'btn btn-primary')) %>
|
55
55
|
</div>
|
56
56
|
</div>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<thead>
|
28
28
|
<tr class='noborder'>
|
29
29
|
<th>
|
30
|
-
<input type="checkbox" name="checkall" id="checkall"
|
30
|
+
<input type="checkbox" name="checkall" id="checkall">
|
31
31
|
</th>
|
32
32
|
<th><%= t(".author") %></th>
|
33
33
|
<th><%= t(".created_at") %></th>
|
@@ -52,4 +52,4 @@
|
|
52
52
|
</table>
|
53
53
|
<% end %>
|
54
54
|
|
55
|
-
<br class='clear'
|
55
|
+
<br class='clear'>
|
@@ -25,11 +25,10 @@
|
|
25
25
|
</div>
|
26
26
|
<div class='form-group'>
|
27
27
|
<label for='note_published_at'><%= t('.publish_at') %></label>
|
28
|
-
<%= n.
|
29
|
-
placeholder: t('.now'), data: { locale: I18n.locale } %>
|
28
|
+
<%= n.datetime_field :published_at, class: 'form-control' %>
|
30
29
|
</div>
|
31
30
|
<div class='form-group'>
|
32
|
-
<hr
|
31
|
+
<hr>
|
33
32
|
<%= link_to(t('.cancel'), action: 'index') %>
|
34
33
|
<%= t('.or') %>
|
35
34
|
<%= submit_tag(t('.publish'), class: 'btn btn-success') %>
|
@@ -3,10 +3,10 @@
|
|
3
3
|
<%= h(note.body.strip_html.slice(0..140)) %>
|
4
4
|
</td>
|
5
5
|
<td>
|
6
|
-
<%= author_link(note) %><br
|
6
|
+
<%= author_link(note) %><br>
|
7
7
|
</td>
|
8
8
|
<td>
|
9
|
-
<%= l(note.published_at) %>
|
9
|
+
<%= l(note.published_at) if note.published_at %>
|
10
10
|
</td>
|
11
11
|
<td>
|
12
12
|
<%= note.text_filter_name %>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<%= f.text_area :description, rows: 5, class: 'form-control', placeholder: 'Description' %>
|
24
24
|
</div>
|
25
25
|
<div class="form-group">
|
26
|
-
<hr
|
26
|
+
<hr>
|
27
27
|
<%= link_to(t('.cancel'), action: 'index') %>
|
28
28
|
<%= t('.or') %>
|
29
29
|
<%= f.submit t('.save'), class: 'btn btn-success' %>
|
@@ -48,7 +48,7 @@
|
|
48
48
|
<% @post_types.each do |post_type| %>
|
49
49
|
<tr>
|
50
50
|
<td>
|
51
|
-
<%= post_type.name %><br
|
51
|
+
<%= post_type.name %><br>
|
52
52
|
<div class='action'>
|
53
53
|
<%= button_to_edit post_type %>
|
54
54
|
<%= button_to_delete post_type %>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<%= f.text_field :to_path, class: 'form-control', placeholder: 'To' %>
|
27
27
|
</div>
|
28
28
|
<div class="form-group">
|
29
|
-
<hr
|
29
|
+
<hr>
|
30
30
|
<%= link_to(t('.cancel'), action: 'index') %>
|
31
31
|
<%= t('.or') %>
|
32
32
|
<%= f.submit t('.save'), class: 'btn btn-success' %>
|
@@ -58,7 +58,7 @@
|
|
58
58
|
<%= button_to_delete redirect %>
|
59
59
|
</div>
|
60
60
|
</td>
|
61
|
-
<td><%= link_to(redirect.to_path, redirect.
|
61
|
+
<td><%= link_to(redirect.to_path, redirect.full_to_path) %></td>
|
62
62
|
</tr>
|
63
63
|
<% end %>
|
64
64
|
<%= display_pagination(@redirects, 2) %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<%= f.text_field :display_name, class: 'form-control', placeholder: 'Name' %>
|
20
20
|
</div>
|
21
21
|
<div class="form-group">
|
22
|
-
<hr
|
22
|
+
<hr>
|
23
23
|
<%= link_to(t('.cancel'), action: 'index') %>
|
24
24
|
<%= t('.or') %>
|
25
25
|
<%= f.submit t('.save'), class: 'btn btn-success' %>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= form_tag @article.comment_url, id: 'comment_form', remote: true do %>
|
2
2
|
<div class="comment-box">
|
3
|
-
<div id="errors"
|
4
|
-
<div id="preview"
|
3
|
+
<div id="errors" class="hidden"></div>
|
4
|
+
<div id="preview" class="hidden"></div>
|
5
5
|
|
6
6
|
<a name="respond"></a>
|
7
7
|
<table cellpadding="4" cellspacing="0" class="frm-tbl">
|
@@ -10,17 +10,17 @@
|
|
10
10
|
<td>
|
11
11
|
<%= text_field 'comment', 'author', size: 20 %>
|
12
12
|
<small>
|
13
|
-
<%= link_to '#',
|
13
|
+
<%= link_to '#', class: "optional-field-toggle" do %>
|
14
14
|
(<%= t('.leave_url_email') %> »)
|
15
15
|
<% end %>
|
16
16
|
</small>
|
17
17
|
</td>
|
18
18
|
</tr>
|
19
|
-
<tr class="optional_field"
|
19
|
+
<tr class="optional_field">
|
20
20
|
<td><p><label for="comment_url"><%= t('.your_blog') %></label></p></td>
|
21
21
|
<td> <%= text_field 'comment', 'url' %></td>
|
22
22
|
</tr>
|
23
|
-
<tr class="optional_field"
|
23
|
+
<tr class="optional_field">
|
24
24
|
<td><p><label for="comment_email"><%= t('.your_email') %></label></p></td>
|
25
25
|
<td> <%= text_field 'comment', 'email' %></td>
|
26
26
|
</tr>
|
@@ -39,8 +39,10 @@
|
|
39
39
|
<tr>
|
40
40
|
<td colspan="2" id="frm-btns">
|
41
41
|
<%= markup_help_popup TextFilter.make_filter(this_blog.comment_text_filter), t('.comment_markup_help') %>
|
42
|
-
|
43
|
-
|
42
|
+
<%= link_to "#", data: { preview_url: @article.preview_comment_url, target_form: "#comment_form" }, class: "preview-comment-link" do %>
|
43
|
+
<%= t('.preview_comment') %>
|
44
|
+
<% end %>
|
45
|
+
<input type="submit" name="submit" id="form-submit-button" value="submit" class="button">
|
44
46
|
</td>
|
45
47
|
</tr>
|
46
48
|
</table>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<li id="trackback-<%= trackback.id %>"
|
1
|
+
<li id="trackback-<%= trackback.id %>">
|
2
2
|
<a name="trackback-<%= trackback.id %>"></a>
|
3
|
-
<%= t('.from') %> <strong><%= trackback.blog_name %></strong><br
|
4
|
-
<a href="<%= trackback.url %>" rel="nofollow"><%= h trackback.title %></a><br
|
3
|
+
<%= t('.from') %> <strong><%= trackback.blog_name %></strong><br>
|
4
|
+
<a href="<%= trackback.url %>" rel="nofollow"><%= h trackback.title %></a><br>
|
5
5
|
<%= trackback.excerpt %>
|
6
6
|
</li>
|
@@ -1,5 +1,7 @@
|
|
1
|
-
<div class="post"
|
2
|
-
|
1
|
+
<div class="post admin-tools-reveal">
|
2
|
+
<% if current_user&.profile == "admin" %>
|
3
|
+
<%= link_to(t('.edit'), edit_admin_article_path(@article.id), class: 'admintools', id: 'admin_article') %>
|
4
|
+
<% end %>
|
3
5
|
<% cache @article do %>
|
4
6
|
<h2><%= link_to_permalink @article, @article.title %></h2>
|
5
7
|
<%= render 'articles/article_author', article: @article %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% cache comment do %>
|
2
|
-
<li id="comment-<%= comment.id %>" <%= 'class="author_comment"' if comment.user
|
2
|
+
<li id="comment-<%= comment.id %>" <%= 'class="author_comment"' if comment.user %>>
|
3
3
|
<p class="author">
|
4
4
|
<%= avatar_tag(email: comment.email, url: comment.url) %>
|
5
5
|
<cite><strong><%= link_to_unless(comment.url.blank?, h(comment.author), comment.url) %></strong></cite>
|
@@ -8,15 +8,15 @@
|
|
8
8
|
<%= f.hidden_field :reset_password_token %>
|
9
9
|
|
10
10
|
<div class="form-group">
|
11
|
-
<%= f.label :password, t('.new_password') %><br
|
11
|
+
<%= f.label :password, t('.new_password') %><br>
|
12
12
|
<% if @minimum_password_length %>
|
13
|
-
<em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br
|
13
|
+
<em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br>
|
14
14
|
<% end %>
|
15
15
|
<%= f.password_field :password, class: 'form-control', autofocus: true, autocomplete: 'off' %>
|
16
16
|
</div>
|
17
17
|
|
18
18
|
<div class="form-group">
|
19
|
-
<%= f.label :password_confirmation, t('.confirm_new_password') %><br
|
19
|
+
<%= f.label :password_confirmation, t('.confirm_new_password') %><br>
|
20
20
|
<%= f.password_field :password_confirmation, class: 'form-control', autocomplete: 'off' %>
|
21
21
|
</div>
|
22
22
|
|
@@ -18,13 +18,13 @@
|
|
18
18
|
<div class="form-group">
|
19
19
|
<%= f.label :password %>
|
20
20
|
<% if @minimum_password_length %>
|
21
|
-
<em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br
|
21
|
+
<em>(<%= t('devise_custom.characters_minimum', min: @minimum_password_length) %>)</em><br>
|
22
22
|
<% end %>
|
23
23
|
<%= f.password_field :password, class: 'form-control', autofocus: true, autocomplete: 'off' %>
|
24
24
|
</div>
|
25
25
|
|
26
26
|
<div class="form-group">
|
27
|
-
<%= f.label :password_confirmation %><br
|
27
|
+
<%= f.label :password_confirmation %><br>
|
28
28
|
<%= f.password_field :password_confirmation, class: 'form-control', autocomplete: 'off' %>
|
29
29
|
</div>
|
30
30
|
|
@@ -5,12 +5,12 @@
|
|
5
5
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
6
6
|
<fieldset>
|
7
7
|
<div class="form-group">
|
8
|
-
<%= f.label :login %><br
|
8
|
+
<%= f.label :login %><br>
|
9
9
|
<%= f.text_field :login, class: 'form-control', autofocus: true %>
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<div class="form-group">
|
13
|
-
<%= f.label :password %><br
|
13
|
+
<%= f.label :password %><br>
|
14
14
|
<%= f.password_field :password, class: 'form-control', autocomplete: 'off' %>
|
15
15
|
</div>
|
16
16
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
<small>
|
2
2
|
<%- if controller_name != 'sessions' %>
|
3
|
-
<%= link_to t('accounts.back_to_login'), new_session_path(resource_name) %><br
|
3
|
+
<%= link_to t('accounts.back_to_login'), new_session_path(resource_name) %><br>
|
4
4
|
<% end -%>
|
5
5
|
|
6
6
|
<%- if controller_name != 'registrations' && this_blog.allow_signup? %>
|
7
|
-
<%= link_to t('accounts.create_account'), new_registration_path(resource_name) %><br
|
7
|
+
<%= link_to t('accounts.create_account'), new_registration_path(resource_name) %><br>
|
8
8
|
<% end -%>
|
9
9
|
|
10
10
|
<%- if controller_name != 'passwords' && controller_name != 'registrations' %>
|
11
|
-
<%= link_to t('accounts.lost_my_password'), new_password_path(resource_name) %><br
|
11
|
+
<%= link_to t('accounts.lost_my_password'), new_password_path(resource_name) %><br>
|
12
12
|
<% end -%>
|
13
13
|
|
14
14
|
<%= link_to(t('accounts.back_to_html', place: this_blog.blog_name), this_blog.base_url) %>
|
@@ -1,12 +1,12 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8"
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"
|
4
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
<%= yield :page_title %>
|
8
8
|
</title>
|
9
|
-
<meta http-equiv="imagetoolbar" content="no"
|
9
|
+
<meta http-equiv="imagetoolbar" content="no">
|
10
10
|
<%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
|
11
11
|
<%= stylesheet_link_tag 'accounts' %>
|
12
12
|
</head>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8"
|
4
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
5
|
<title><%= this_blog.blog_name %> – <%= controller.controller_name %></title>
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"
|
7
|
-
<meta http-equiv="imagetoolbar" content="no"
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<meta http-equiv="imagetoolbar" content="no">
|
8
8
|
<%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
|
9
9
|
<%= stylesheet_link_tag 'publify_admin' %>
|
10
10
|
<%= csrf_meta_tags %>
|
@@ -12,9 +12,7 @@
|
|
12
12
|
<body>
|
13
13
|
<%= render 'admin/shared/menu' %>
|
14
14
|
<div class='container-fluid'>
|
15
|
-
|
16
|
-
<%= render 'shared/flash', flash: flash %>
|
17
|
-
</div>
|
15
|
+
<%= render 'shared/flash', flash: flash %>
|
18
16
|
<% if content_for?(:page_heading) %>
|
19
17
|
<div class='page-header'>
|
20
18
|
<%= yield :page_heading %>
|
@@ -4,7 +4,7 @@
|
|
4
4
|
<%= render 'shared/page_header' %>
|
5
5
|
<%= themeable_stylesheet_link_tag :theme %>
|
6
6
|
<%= themeable_javascript_include_tag :theme %>
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1"
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
8
|
<title><%= h page_title %></title>
|
9
9
|
</head>
|
10
10
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-type" content="text/html; charset=utf-8"
|
4
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
5
|
<title><%= this_blog.blog_name %> – <%= controller.controller_name %></title>
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"
|
7
|
-
<meta http-equiv="imagetoolbar" content="no"
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7
|
+
<meta http-equiv="imagetoolbar" content="no">
|
8
8
|
<%= javascript_include_tag 'publify_admin', async: Rails.env.production? %>
|
9
9
|
<%= stylesheet_link_tag 'publify_admin' %>
|
10
10
|
<%= csrf_meta_tags %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= image_tag(@reply['user']['profile_image_url'], class: 'alignleft', alt: @reply['user']['name']) %>
|
6
6
|
<% end %>
|
7
7
|
<strong><%= get_reply_context_url(@reply) %></strong>
|
8
|
-
<p><%= nofollowify_links(
|
8
|
+
<p><%= nofollowify_links(PublifyCore::TextFilter::Twitterfilter.filtertext(@reply['text'])) %></p>
|
9
9
|
<p>
|
10
10
|
<small>
|
11
11
|
<%= get_reply_context_twitter_link(@reply) %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<h2><%= h @comment.title %></h2>
|
7
7
|
<cite><strong><%= @comment.url.blank? ? h(@comment.author) : link_to(h(@comment.author), @comment.url) %></strong> </cite>
|
8
8
|
<%= link_to('said', @comment.permalink_url) %>
|
9
|
-
<%= display_date_and_time @comment.created_at %> <br
|
9
|
+
<%= display_date_and_time @comment.created_at %> <br>
|
10
10
|
<%= html @comment %>
|
11
11
|
<% end %>
|
12
12
|
<%= render 'mail_footer' %>
|
@@ -3,8 +3,7 @@
|
|
3
3
|
</h3>
|
4
4
|
<div class="sidebar-body">
|
5
5
|
<%= form_tag({ controller: 'articles', action: 'search' }, { method: 'get', id: 'sform' }) do %>
|
6
|
-
<input type="text" id="q" name="q" value="" size="15"
|
7
|
-
<input type="submit" value="<%= t('.search') %>"
|
6
|
+
<input type="text" id="q" name="q" value="" size="15" autocomplete="off">
|
7
|
+
<input type="submit" value="<%= t('.search') %>">
|
8
8
|
<% end %>
|
9
9
|
</div>
|
10
|
-
<br style="clear: right" />
|