homeland-press 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 257c58e145bd174122bcd0198e7519a03dabd3d4
4
- data.tar.gz: 2a8f561dd77214e85cb0bfb2cf92b017113c7af4
3
+ metadata.gz: 5826154fd184de28ef988187dcc040a50810ae1f
4
+ data.tar.gz: 4472f9b32944136af2fc085792b528b55deb57f7
5
5
  SHA512:
6
- metadata.gz: 07c49eccf896e0304746b9ea86e84858a7f5f0c53b3861697fff78f3822b2b253b24677de59efbe49ebd51f9b35dba6fa1e263341988a45445c5925c06290350
7
- data.tar.gz: 319a070ea331e8c8588bfda93fa9858725b7b29c212d7c3c1e8c35a8d2685e39938823298cd0ff5cd85583a898ed8334acfafae36707a0bda8575d1bac79b763
6
+ metadata.gz: ba920a26a4a34a9eba90f2ffdfaf215cc5473ff4aa0ab36107c63929021135009b28e921bf5909e37d79de7730f86b513dfafd110ddceaba6acdef03faf9240b
7
+ data.tar.gz: ec02ad9cd4076bdfcad9a181ea6b6db41c61a41c1f5b59ec9d14c0c2fe94861f04c0fc090ca8239cbe3b04515a40b32ee33c34596eaf7ed14a131dd6412a541f
@@ -1,9 +1,20 @@
1
- <%= simple_form_for(post) do |f| %>
1
+ <%= form_for post do |f| %>
2
2
  <%= render "/shared/error_messages", target: post %>
3
3
 
4
- <%= f.input :title %>
5
- <%= f.input :slug %>
6
- <%= f.input :summary, as: :text %>
4
+ <div class="form-group">
5
+ <%= f.label :title %>
6
+ <%= f.text_field :title, class: "form-control" %>
7
+ </div>
8
+
9
+ <div class="form-group">
10
+ <%= f.label :slug %>
11
+ <%= f.text_field :slug, class: "form-control" %>
12
+ </div>
13
+
14
+ <div class="form-group">
15
+ <%= f.label :summary %>
16
+ <%= f.text_area :summary, class: "form-control" %>
17
+ </div>
7
18
 
8
19
  <%= render "/shared/editor_toolbar" %>
9
20
 
@@ -12,6 +23,6 @@
12
23
  </div>
13
24
 
14
25
  <div class="form-actions">
15
- <%= f.submit t("common.save"), class: "btn btn-primary col-xs-2", 'data-disable-with' => t("common.saving"), 'data-tb' => "save-topic" %>
26
+ <%= f.submit t("common.save"), class: "btn btn-primary", 'data-disable-with' => t("common.saving"), 'data-tb' => "save-topic" %>
16
27
  </div>
17
28
  <% end %>
@@ -1,6 +1,6 @@
1
1
  <div class="sidebar col-md-3 hide-ios">
2
- <div class="panel panel-default">
3
- <div class="panel-body">
2
+ <div class="card">
3
+ <div class="card-body">
4
4
  <% if can? :create, Post %>
5
5
  <%= link_to "提交新文章", new_post_path, class: 'btn btn-block btn-primary' %>
6
6
  <% end %>
@@ -1,9 +1,8 @@
1
1
  <% title_tag "编辑文章" %>
2
2
 
3
- <div class="panel panel-default">
4
- <div class="panel-body">
5
- <div class="heading">编辑文章</div>
6
-
3
+ <div class="card">
4
+ <div class="card-header">编辑文章</div>
5
+ <div class="card-body">
7
6
  <%= render 'form', post: @post %>
8
7
  </div>
9
8
  </div>
@@ -2,14 +2,15 @@
2
2
 
3
3
  <div class="row">
4
4
  <div class="col-md-9">
5
- <div id="post-list" class="panel panel-default post-<%= action_name %>">
6
- <div class="panel-body">
5
+ <div id="post-list" class="card post-<%= action_name %>">
6
+ <div class="card-body">
7
7
  <% if @posts.blank? %>
8
8
  <div class="no-result">暂无任何文章</div>
9
9
  <% else %>
10
10
  <%= render partial: 'post', collection: @posts %>
11
11
  <% end %>
12
-
12
+ </div>
13
+ <div class="card-footer">
13
14
  <%= paginate @posts %>
14
15
  </div>
15
16
  </div>
@@ -1,9 +1,8 @@
1
1
  <% title_tag "提交新文章" %>
2
2
 
3
- <div class="panel panel-default">
4
- <div class="panel-body">
5
- <div class="heading">提交新文章</div>
6
-
3
+ <div class="card">
4
+ <div class="card-header">提交新文章</div>
5
+ <div class="card-body">
7
6
  <%= render 'form', post: @post %>
8
7
  </div>
9
8
  </div>
@@ -1,7 +1,7 @@
1
1
  <% title_tag @post.title %>
2
2
 
3
- <div id="post-detail" class="panel panel-default">
4
- <div class="panel-body">
3
+ <div id="post-detail" class="card">
4
+ <div class="card-body">
5
5
  <div class="post-opts clearfix">
6
6
  <div class="pull-left">
7
7
  <a href="<%= posts_path %>" class="btn btn-default"><i class="fa fa-chevron-left"></i> 返回文章列表</a>
@@ -2,9 +2,9 @@
2
2
 
3
3
  <div class="row">
4
4
  <div class="col-md-9">
5
- <div id="post-upcoming" class="panel panel-default post-<%= action_name %>">
6
- <div class="panel-heading">待审核列表</div>
7
- <div class="panel-body">
5
+ <div id="post-upcoming" class="card post-<%= action_name %>">
6
+ <div class="card-header">待审核列表</div>
7
+ <div class="card-body">
8
8
  <% if @posts.blank? %>
9
9
  <div class="no-result">暂无任何文章</div>
10
10
  <% else %>
@@ -25,7 +25,8 @@
25
25
  <% end %>
26
26
  </table>
27
27
  <% end %>
28
-
28
+ </div>
29
+ <div class="card-footer">
29
30
  <%= paginate @posts %>
30
31
  </div>
31
32
  </div>
@@ -1,6 +1,6 @@
1
1
  module Homeland
2
2
  module Press
3
3
  NAME = 'press'
4
- VERSION = '0.3.4'
4
+ VERSION = '0.4.0'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeland-press
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-07 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.6.11
86
+ rubygems_version: 2.5.2
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Press/Blog/News plugin for Homeland.