personal_blog 0.0.1 → 0.0.2

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: 25b82da9b4c65da2dbc46635a5ccede21faea018
4
- data.tar.gz: bdc62da8c958f92d66a141bb4bb5136c2a343bca
3
+ metadata.gz: d9f9feaa7adef8c3c0d7092923f9ae8b88882164
4
+ data.tar.gz: de91940d7d257bc0a85f05cae8a2b4dccf2e8e2c
5
5
  SHA512:
6
- metadata.gz: 4b10256569e561e1e9306d2007a0ae1476650d89426661abb2cc19bb895ed203f353188f46fc8bc3b16feabca584479cce4317376eee8ec1ebf017fe581d2baa
7
- data.tar.gz: ecb016367f7db113b3256178ddab0eaeb5a958c0c26112928ed9277b53960a6c60485b4c0634ca3abed41f572dfb031cb4dbf55e40c632dd848cff2a00d530fe
6
+ metadata.gz: 296a7539177bb4d869dda93d780f1f631d6910a24f63cee23b31b8bc014f3f2600451e0f4bada8a33d8782b2c72a0019a286f46e51616f3136c32f9173640d3b
7
+ data.tar.gz: 370be74a55a8b539dd6b7050499bc3cf677a9ac4b73839afef85a483e7ce51543f94c58c24a88578945a38c0df0185d07888aa15bd629ae4828bf3da770fcd47
@@ -2,9 +2,13 @@ div.comment-box {
2
2
  margin-bottom: 5px;
3
3
  padding: 5px;
4
4
  border-bottom: 1px solid #777;
5
+ line-height: 1.8em;
5
6
  }
6
7
 
7
8
  .comment-date {
8
9
  float: right;
9
10
  }
10
11
 
12
+ a.comment-delete {
13
+ float: right;
14
+ }
@@ -1,5 +1,8 @@
1
1
  <div class="comment-box">
2
2
  <b><%= comment.author %></b>
3
3
  <span class="comment-date"><%= comment.created_at.strftime('%B %e, %Y')%></span> <br>
4
- <%= comment.text %>
4
+ <%= comment.text %>
5
+ <% if admin? %>
6
+ <%= link_to 'Delete', @post, method: :delete, data: { confirm: 'Are you sure?' }, class: 'comment-delete' %>
7
+ <% end %>
5
8
  </div>
@@ -1,3 +1,3 @@
1
1
  module PersonalBlog
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: personal_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nakul Pathak
@@ -66,8 +66,9 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: A mountable rails engine which adds a personal blog without creating
70
- any user models. It supports markdown and all styles can be easily customized.
69
+ description: PersonalBlog adds a responsive and completely customizable single-user
70
+ blog to any Ruby on Rails application. It supports markdown and provides syntax
71
+ highlighting with a clean, minimalistic design.
71
72
  email:
72
73
  - nakulpathak3@hotmail.com
73
74
  executables: []