blogr 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1,3 @@
1
+ <% require "pygments" %>
2
+
1
3
  <%= Pygments.css %>
@@ -49,12 +49,6 @@ module Blogr
49
49
  redirect_to posts_url, notice: "Post was successfully destroyed"
50
50
  end
51
51
 
52
- def preview
53
- @post = Post.new(post_params)
54
- render @post
55
- end
56
-
57
-
58
52
  private
59
53
 
60
54
  def set_post
@@ -22,8 +22,8 @@
22
22
  = f.text_field :permalink, class: "form-control"
23
23
 
24
24
  .form-group
25
- #{f.label :content} - #{link_to "Markdown Enabled", "http://whatismarkdown.com", target: '_blank'} - #{link_to "Preview", preview_posts_path, data: { url: preview_posts_path, preview: 1 } }
26
- = f.text_area :content, rows: 10, style: "width:100%", class: "form-control"
25
+ #{f.label :content} - #{link_to "Markdown Enabled", "http://whatismarkdown.com"}
26
+ = f.text_area :content, rows: 10, style: "width:100%", class: "form-control", "data-provide" => "markdown"
27
27
 
28
28
  .form-group
29
29
  = f.label :tag_list
@@ -40,6 +40,4 @@
40
40
  = f.text_field :published_at, class: "datepicker form-control"
41
41
 
42
42
  .form-group{style: "margin-top: 20px"}
43
- = f.submit "Submit", class: "btn btn-success"
44
-
45
- #preview
43
+ = f.submit "Submit", class: "btn btn-success"
@@ -1,4 +1,4 @@
1
1
  - content_for :links do
2
2
  = link_to "Edit", edit_post_path, class: "btn btn-default"
3
3
 
4
- = render @post
4
+ .markdown= @post.content_rendered
@@ -20,6 +20,8 @@
20
20
  %small.logout= link_to "Log Out", logout_path
21
21
  %ul.nav
22
22
  %li= link_to raw("#{content_tag(:i, '', class: 'batch batch-arrow-left')} View Site"), main_app.root_url
23
+ %li= link_to raw("#{content_tag(:i, '', class: 'batch batch-document')} Blogr Documentation"), "https://docs.voupe.com/blogr/"
24
+ %ul.nav
23
25
  = active_link_to raw("#{content_tag(:i, '', class: 'batch batch-home')} Dashboard"), root_path, active: [["dashboard"], ["index"]], wrap_tag: :li
24
26
  = active_link_to raw("#{content_tag(:i, '', class: 'batch batch-list')} Posts"), posts_path, wrap_tag: :li
25
27
  = active_link_to raw("#{content_tag(:i, '', class: 'batch batch-tag-alt')} Categories"), categories_path, wrap_tag: :li
data/config/routes.rb CHANGED
@@ -1,10 +1,6 @@
1
1
  Blogr::Engine.routes.draw do
2
2
 
3
- resources :posts do
4
- collection do
5
- post :preview
6
- end
7
- end
3
+ resources :posts
8
4
  resources :categories
9
5
  resources :tags
10
6
  resources :users, except: [:show]
data/lib/blogr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Blogr
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Perry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-11 00:00:00.000000000 Z
11
+ date: 2013-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -962,7 +962,11 @@ files:
962
962
  - app/assets/images/blogr/icons/white/zoom-out.svg
963
963
  - app/assets/images/blogr/logo.png
964
964
  - app/assets/javascripts/blogr/application.js
965
+ - app/assets/javascripts/blogr/bootstrap-markdown.min.css
966
+ - app/assets/javascripts/blogr/bootstrap-markdown.min.js
965
967
  - app/assets/javascripts/blogr/bootstrap.min.js
968
+ - app/assets/javascripts/blogr/jquery.autosize.min.js
969
+ - app/assets/javascripts/blogr/markdown.min.js
966
970
  - app/assets/javascripts/blogr/posts.coffee
967
971
  - app/assets/javascripts/blogr/sessions.js
968
972
  - app/assets/javascripts/blogr/tags.js
@@ -1009,7 +1013,6 @@ files:
1009
1013
  - app/views/blogr/comments/show.html.haml
1010
1014
  - app/views/blogr/dashboard/index.html.haml
1011
1015
  - app/views/blogr/posts/_form.html.haml
1012
- - app/views/blogr/posts/_post.html.haml
1013
1016
  - app/views/blogr/posts/edit.html.haml
1014
1017
  - app/views/blogr/posts/index.html.haml
1015
1018
  - app/views/blogr/posts/new.html.haml
@@ -1097,7 +1100,7 @@ files:
1097
1100
  - spec/models/blogr/post_spec.rb
1098
1101
  - spec/models/blogr/user_spec.rb
1099
1102
  - spec/spec_helper.rb
1100
- homepage: http://voupe.com
1103
+ homepage: http://blogrhq.com
1101
1104
  licenses: []
1102
1105
  metadata: {}
1103
1106
  post_install_message:
@@ -1116,10 +1119,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1116
1119
  version: '0'
1117
1120
  requirements: []
1118
1121
  rubyforge_project:
1119
- rubygems_version: 2.1.5
1122
+ rubygems_version: 2.0.3
1120
1123
  signing_key:
1121
1124
  specification_version: 4
1122
- summary: Rails blogging engine
1125
+ summary: Rails blogging platform
1123
1126
  test_files:
1124
1127
  - spec/controllers/blogr/posts_controller_spec.rb
1125
1128
  - spec/dummy/app/assets/javascripts/application.js
@@ -1 +0,0 @@
1
- .markdown= preserve @post.content_rendered