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 +4 -4
- data/app/views/homeland/press/posts/_form.html.erb +16 -5
- data/app/views/homeland/press/posts/_sidebar.html.erb +2 -2
- data/app/views/homeland/press/posts/edit.html.erb +3 -4
- data/app/views/homeland/press/posts/index.html.erb +4 -3
- data/app/views/homeland/press/posts/new.html.erb +3 -4
- data/app/views/homeland/press/posts/show.html.erb +2 -2
- data/app/views/homeland/press/posts/upcoming.html.erb +5 -4
- data/lib/homeland/press/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5826154fd184de28ef988187dcc040a50810ae1f
|
4
|
+
data.tar.gz: 4472f9b32944136af2fc085792b528b55deb57f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba920a26a4a34a9eba90f2ffdfaf215cc5473ff4aa0ab36107c63929021135009b28e921bf5909e37d79de7730f86b513dfafd110ddceaba6acdef03faf9240b
|
7
|
+
data.tar.gz: ec02ad9cd4076bdfcad9a181ea6b6db41c61a41c1f5b59ec9d14c0c2fe94861f04c0fc090ca8239cbe3b04515a40b32ee33c34596eaf7ed14a131dd6412a541f
|
@@ -1,9 +1,20 @@
|
|
1
|
-
<%=
|
1
|
+
<%= form_for post do |f| %>
|
2
2
|
<%= render "/shared/error_messages", target: post %>
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
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="
|
3
|
-
<div class="
|
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="
|
4
|
-
<div class="
|
5
|
-
|
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="
|
6
|
-
<div class="
|
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="
|
4
|
-
<div class="
|
5
|
-
|
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="
|
4
|
-
<div class="
|
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="
|
6
|
-
<div class="
|
7
|
-
<div class="
|
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>
|
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.
|
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:
|
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.
|
86
|
+
rubygems_version: 2.5.2
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Press/Blog/News plugin for Homeland.
|