tkh_content 0.9.17 → 0.9.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 196660d06e8ea8145cd14796667136f660533cbe
4
- data.tar.gz: 99db882adc8d6a6b09d6e3f3c38443a31e693061
3
+ metadata.gz: 8fddc83cfe5c0cfe205c5ce9f76e382ca68a596a
4
+ data.tar.gz: 8a74ed3add9e5b50178da709b5c740d85843f6b4
5
5
  SHA512:
6
- metadata.gz: e32b81edf3904a604996aa39ae9d54feac74e607fe87be3bbeefb8f2092af353633298ec8cfbca280016899510c78f77ed09aef6eacd32e0f1a588ed5128238b
7
- data.tar.gz: c93e7e46ffde7f0f00c72182a958a657b00510db11a30df77059c95e8df87a23f935eb37e993ce1aeccf0117b3b727a8414b996218f5307d3e6d0fb11987966d
6
+ metadata.gz: dbf1040682f0fff512a97279075ae6c13eda7026be7c14e2561eb51be0ce4b3f69c3b2e07c9c474045b740edf588c488c2814fd7ea094a4109046f693ac5afa1
7
+ data.tar.gz: c1f40705d2634781dc4415502071fc0f3056ccb19713075ce0531b72ac24a16ba11856388e719f0a7eab7aaddda97a4d0f151250b57a7d217696a634557642ff
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.18
6
+
7
+ * Fixed up markup for 3 forms
8
+
9
+
5
10
  ## 0.9.17
6
11
 
7
12
  * Log comment creation to activity feed.
@@ -7,8 +7,7 @@
7
7
  <%= link_to l(comment.created_at, format: :tkh_default), p(comment.commentable, anchor: "comment-#{comment.id}") %>
8
8
  <br /><br />
9
9
  <p class="admin-comment-body"><%= sanitize comment.body.gsub(/\r\n?/, "<br>"), :tags => %w(br), :attributes => %w() %></p>
10
- <strong><%= t("comments.status.#{comment.status}") %></strong><br />
11
- <%= render 'comments/status_buttons', comment: comment %>
10
+ <strong><%= t("comments.status.#{comment.status}") %></strong> <%= render 'comments/status_buttons', comment: comment %>
12
11
  <br /><br />
13
12
  <%= link_to t('edit'), edit_comment_path(comment), class: 'btn btn-xs btn-default' %><%= link_to t('delete'), comment, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %>
14
13
  </td>
@@ -1,12 +1,12 @@
1
- <%= simple_form_for @comment, :html => { class: 'form-horizontal' } do |f| %>
1
+ <h1>Created by <%= link_to @comment.author.name, detail_path(@comment.author) %> and attached to the <%= @comment.commentable.class.to_s.downcase %>: <%= link_to (@comment.commentable.try(:title) || @comment.commentable.try(:name)), @comment.commentable %></h1>
2
+
3
+ <strong><%= t("comments.status.#{@comment.status}") %></strong> <%= render 'comments/status_buttons', comment: @comment %>
4
+
5
+ <%= simple_form_for @comment do |f| %>
2
6
  <%= f.error_notification %>
3
7
 
4
- <%= @comment.author.name %><br />
5
- <%= link_to (@comment.commentable.try(:title) || @comment.commentable.try(:name)), @comment.commentable %><br />
6
- <%#= f.input :short_title, hint: 'ideally one word only, used for the menu' %><br />
7
- <%= render 'comments/status_buttons', comment: @comment %><br />
8
8
  <%= f.input :body, :input_html => { rows: 3, cols: 55 } %>
9
- <br />
9
+
10
10
  <%= f.button :submit, :class => 'btn btn-primary' %>
11
11
 
12
12
  <% end %>
@@ -1,14 +1,9 @@
1
- <%= simple_form_for Contact.new, :html => { class: 'form-horizontal' } do |f| %>
1
+ <%= simple_form_for Contact.new do |f| %>
2
2
  <%= f.error_notification %>
3
-
4
- <div class="form-inputs">
3
+
5
4
  <%= f.input :sender_name, label: t('activerecord.attributes.contacts.sender_name') %>
6
5
  <%= f.input :sender_email, label: t('activerecord.attributes.contacts.sender_email') %>
7
6
  <%= f.input :body, label: t('activerecord.attributes.contacts.body'), :input_html => { :rows => 10 } %>
8
- </div>
9
-
10
- <div class="form-actions">
11
- <%= f.button :submit, t('contacts.send_message'), :class => 'btn btn-primary' %>
12
- </div>
13
7
 
8
+ <%= f.button :submit, t('contacts.send_message'), :class => 'btn btn-primary' %>
14
9
  <% end %>
@@ -1,17 +1,22 @@
1
- <%= simple_form_for @page, :html => { class: 'form-horizontal', role: 'form' } do |f| %>
1
+ <%= simple_form_for @page, :html => { role: 'form' } do |f| %>
2
2
  <%= f.error_notification %>
3
3
 
4
4
  <%= f.input :title,
5
5
  label: t('activerecord.attributes.pages.title'),
6
- hint: t('pages.hint.title'),
7
- input_html: { size: 45 } %>
8
- <%= f.input :for_blog, label: t('activerecord.attributes.pages.for_the_blog') %>
6
+ hint: t('pages.hint.title') %>
7
+
8
+ <%= f.input :for_blog,
9
+ label: t('activerecord.attributes.pages.for_the_blog')
10
+ %>
11
+
9
12
  <%= f.input :tag_list,
10
13
  label: t('tags.tag_list'),
11
14
  hint: t('tags.hint.name'),
12
15
  :wrapper_html => { :id => 'page-tag-list' },
13
- input_html: { size: 45 } %>
16
+ input_html: { size: 25 } %>
17
+
14
18
  <%= f.input :short_title, label: t('activerecord.attributes.pages.short_title'), hint: t('pages.hint.short_title'), :wrapper_html => { :id => 'page-short-title' } %>
19
+
15
20
  <%= f.input :parent_page_title,
16
21
  as: :string,
17
22
  :wrapper_html => { :id => 'parent-page-title' },
@@ -21,6 +26,7 @@
21
26
  :data => { provide: 'typeahead',
22
27
  source: Page.not_for_blog.by_title.map(&:title).to_json }
23
28
  } %>
29
+
24
30
  <%= f.input :description, label: t('activerecord.attributes.pages.description'), :input_html => { cols: 45, rows: 3 } %>
25
31
  <%= f.input :body, label: t('activerecord.attributes.pages.body'), :input_html => { :rows => 35, :class => 'ckeditor' } %>
26
32
 
@@ -36,7 +42,6 @@
36
42
  } %>
37
43
  <% end -%>
38
44
 
39
- <br />
40
45
  <%= f.button :submit, :class => 'btn btn-primary' %>
41
46
 
42
47
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module TkhContent
2
- VERSION = "0.9.17"
2
+ VERSION = "0.9.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_content
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.17
4
+ version: 0.9.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-19 00:00:00.000000000 Z
11
+ date: 2014-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails