Skip to content

Commit

Permalink
various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Novik authored and krazedkrish committed Nov 3, 2016
1 parent a3191c2 commit 068288f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Empty file modified app/controllers/spree/admin/blog_entries_controller.rb
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions app/views/spree/admin/blog_entries/_form.html.erb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
<%= form.field_container :category_list do %>
<div class="form-group">
<%= form.label :category_list, Spree.t(:category_list) %>
<%= form.text_field :category_list, :class => '' %>
<%= form.text_field :category_list, value: @blog_entry.category_list.join(', ') %>
</div><!-- form-group -->
<% end %>

<%= form.field_container :tag_list do %>
<div class="form-group">
<%= form.label :tag_list, Spree.t(:tag_list) %>
<%= form.text_field :tag_list, :class => '' %>
<%= form.text_field :tag_list, value: @blog_entry.tag_list.join(', ') %>
</div><!-- form-group -->
<% end %>

Expand Down Expand Up @@ -106,7 +106,7 @@
<div class="col-sm-12">
<%= form.field_container :body do %>
<div class="form-group">
<%= form.label :body %> <span class="text-alert">*</span>
<%= form.label :body %> <span class="text-danger">*</span>
<%= form.text_area :body, { :rows => 10, :class => 'form-control', :id => 'blog_entry_body'} %>
<%= form.error_message_on :body %>
</div><!-- form-group -->
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/blog_entries/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<%= render :partial => 'spree/blog_entries/blog_sidebar' %>
<% end %>

<div id="blog_entry_container" class='container'>
<div id="blog_entry_container" class=''>
<div id="blog_entry_entry" class=''>

<h1><%= @blog_entry.title %></h1>
Expand Down
2 changes: 1 addition & 1 deletion config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ ru:
archive: Архив
time:
formats:
blog_date: "%e %b %Y"
blog_date: "%e %B %Y"

3 changes: 0 additions & 3 deletions config/routes.rb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
scope Spree::Config['blog_alias'], as: 'blog' do
get '/tag/:tag' => 'blog_entries#tag', :as => :tag
get '/category/:category' => 'blog_entries#category', :as => :category
get '/author/:author' => 'blog_entries#author', :as => :author
get '/:year/:month/:day/:slug' => 'blog_entries#show', :as => :entry_permalink
get '/:year(/:month)(/:day)' => 'blog_entries#archive', :as => :archive,
:constraints => {:year => /(19|20)\d{2}/, :month => /[01]?\d/, :day => /[0-3]?\d/}
get '/feed' => 'blog_entries#feed', :as => :feed, :format => :rss
get '/' => 'blog_entries#index'
end
Expand Down

0 comments on commit 068288f

Please sign in to comment.