phcpresspro 4.2.6 → 4.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/phcpresspro/articles/posts/_form.html.erb +1 -1
- data/app/views/phcpresspro/articles/posts/edit.html.erb +42 -1
- data/app/views/phcpresspro/articles/posts/index.html.erb +63 -32
- data/app/views/phcpresspro/articles/posts/new.html.erb +42 -1
- data/lib/phcpresspro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 846813e43076834d0476fe187629239cb4fafa28
|
4
|
+
data.tar.gz: 77d896cbc6ff3a355c5ea1b2050f7b5c1f91e3eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41dddc33ca07d59a8293ee7a6d8412b2a3a128c226a3433a28cd32a45f8269a6bb348e076d2b1fb12e300155eddc100c66515513e7561cd0cfa65433068e90f3
|
7
|
+
data.tar.gz: d55a524af5e8117b2ee650e71431f9240b4357e038d4605dd662e1a305de6d8e40f156ba80160fdec11601fa0c2c701d8c7693f989d50721757666984d54c195
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<%= f.file_field :pstimage, class: "form-control" %>
|
32
32
|
</div>
|
33
33
|
<% if f.object.pstimage? %>
|
34
|
-
<%= image_tag f.object.
|
34
|
+
<%= image_tag f.object.pstimage_url, class: "img-responsive img-thumbnail" %>
|
35
35
|
<%= f.label :remove_pstimage %>
|
36
36
|
<%= f.check_box :remove_pstimage %>
|
37
37
|
<% end %>
|
@@ -1 +1,42 @@
|
|
1
|
-
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "PHCPress - Article" %>
|
3
|
+
<% phc_title_tagline "Create a New Article" %>
|
4
|
+
|
5
|
+
<!-- Bread Crumb -->
|
6
|
+
<div class="page-bar">
|
7
|
+
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Script Listings", phcpresspro.articles_posts_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
20
|
+
|
21
|
+
<!-- Main Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<div class="portlet light">
|
26
|
+
|
27
|
+
<div class="portlet-title">
|
28
|
+
<div class="caption">
|
29
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
30
|
+
</div>
|
31
|
+
<div class="actions">
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="portlet-body">
|
36
|
+
<%= render 'form', articles_post: @articles_post %>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
</div>
|
42
|
+
</div>
|
@@ -1,41 +1,72 @@
|
|
1
|
-
<!--
|
2
|
-
|
3
|
-
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "Articles List" %>
|
3
|
+
<% phc_title_tagline "Article Index" %>
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
<!-- Bread Crumb -->
|
6
|
+
<div class="page-bar">
|
7
|
+
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Script Listings", phcpresspro.articles_posts_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
8
20
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
<tbody>
|
23
|
-
<% @articles_posts.each do |articles_post| %>
|
24
|
-
<tr>
|
25
|
-
<td><%= articles_post.psttitle %></td>
|
26
|
-
<td><%= truncate(articles_post.psttext, :length => 80) %></td>
|
27
|
-
<td><%= articles_post.pststatus %></td>
|
28
|
-
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
29
|
-
<%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
|
30
|
-
<%= link_to 'Trash', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
31
|
-
</div></td>
|
32
|
-
</tr>
|
21
|
+
<!-- Main Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
<div class="portlet light">
|
25
|
+
|
26
|
+
<div class="portlet-title">
|
27
|
+
<div class="caption">
|
28
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
29
|
+
</div>
|
30
|
+
<div class="actions">
|
31
|
+
<%= link_to phcpresspro.new_articles_post_path, class: "btn blue-chambray" do %>
|
32
|
+
<i class="fa fa-plus"></i> Add a New Article Post
|
33
33
|
<% end %>
|
34
|
-
</
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div class="portlet-body">
|
38
|
+
<div class="table-responsive">
|
39
|
+
<table class="table table-striped table-bordered table-hover table-header-fixed">
|
35
40
|
|
36
|
-
|
41
|
+
<thead>
|
42
|
+
<tr>
|
43
|
+
<th>Title</th>
|
44
|
+
<th>Text Preview</th>
|
45
|
+
<th>Article Status</th>
|
46
|
+
<th></th>
|
47
|
+
</tr>
|
48
|
+
</thead>
|
49
|
+
|
50
|
+
<tbody>
|
51
|
+
<% @articles_posts.each do |articles_post| %>
|
52
|
+
<tr>
|
53
|
+
<td><%= articles_post.psttitle %></td>
|
54
|
+
<td><%= truncate(articles_post.psttext, :length => 80) %></td>
|
55
|
+
<td><%= articles_post.pststatus %></td>
|
56
|
+
<td><div class="btn-group" role="group" aria-label="Blog Articles">
|
57
|
+
<%= link_to 'Edit', edit_articles_post_path(articles_post), class: "btn btn-primary btn-xs" %>
|
58
|
+
<%= link_to 'Trash', articles_post, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: 'Are you sure?' } %>
|
59
|
+
</div></td>
|
60
|
+
</tr>
|
61
|
+
<% end %>
|
62
|
+
</tbody>
|
63
|
+
|
64
|
+
</table>
|
65
|
+
</div>
|
66
|
+
</div>
|
37
67
|
|
38
68
|
<%= link_to 'New Blog Post', new_articles_post_path, class: "btn btn-primary" %>
|
69
|
+
|
39
70
|
</div>
|
40
71
|
|
41
72
|
</div>
|
@@ -1 +1,42 @@
|
|
1
|
-
|
1
|
+
<!-- Title System -->
|
2
|
+
<% phc_title "PHCPress - Article" %>
|
3
|
+
<% phc_title_tagline "Create a New Article" %>
|
4
|
+
|
5
|
+
<!-- Bread Crumb -->
|
6
|
+
<div class="page-bar">
|
7
|
+
|
8
|
+
<ul class="page-breadcrumb">
|
9
|
+
<li><%= link_to "Script Listings", phcpresspro.articles_posts_path %><i class="fa fa-circle"></i></li>
|
10
|
+
<li class="active"><%= yield(:phc_title_tagline) %></li>
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<!-- Page Title -->
|
16
|
+
<h3 class="page-title">
|
17
|
+
<%= yield(:phc_title) %> </br>
|
18
|
+
<small><%= yield(:phc_title_tagline) %></small>
|
19
|
+
</h3>
|
20
|
+
|
21
|
+
<!-- Main Content -->
|
22
|
+
<div class="row">
|
23
|
+
<div class="col-lg-12">
|
24
|
+
|
25
|
+
<div class="portlet light">
|
26
|
+
|
27
|
+
<div class="portlet-title">
|
28
|
+
<div class="caption">
|
29
|
+
<span class="caption-subject bold uppercase"><%= yield(:phc_title_tagline) %></span>
|
30
|
+
</div>
|
31
|
+
<div class="actions">
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div class="portlet-body">
|
36
|
+
<%= render 'form', articles_post: @articles_post %>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
</div>
|
40
|
+
|
41
|
+
</div>
|
42
|
+
</div>
|
data/lib/phcpresspro/version.rb
CHANGED