redde 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in redde.gemspec
4
+ gem "compass-rails", "~> 2.0.alpha.0"
5
+
4
6
  gemspec
@@ -6,7 +6,7 @@
6
6
  //
7
7
  //= require jquery
8
8
  //= require jquery_ujs
9
- //= require jquery-ui.min
9
+ //= require jquery.ui.all
10
10
  //= require admin/swfobject
11
11
  //= require admin/uploadify/jquery.uploadify.min
12
12
  //= require admin/uploadifive/jquery.uploadifive
@@ -81,8 +81,8 @@ module AdminHelper
81
81
  model.model_name.human
82
82
  end
83
83
 
84
- def tgenetive model_name
85
- t("activerecord.models.#{model_name}.gen")
84
+ def taccusative model_name
85
+ t("activerecord.models.#{model_name}.acc")
86
86
  end
87
87
 
88
88
  def tplural model
@@ -1,5 +1,5 @@
1
- - @active = :shop if (["products", "categories", "brands", "orders", "countries", "regions", "sliders"].include? controller.controller_name) && params[:slider_block] != "2"
2
- - @active = :materials if (["articles", "categories", "works"].include? controller.controller_name) || params[:slider_block] == "2"
1
+ - @active = :shop if (["products"].include? controller.controller_name)
2
+ - @active = :materials if (["articles"].include? controller.controller_name)
3
3
  - @active = :system if ["users"].include? controller.controller_name
4
4
  #launchbar
5
5
  %ul.menus
@@ -3,21 +3,7 @@
3
3
  -case @active
4
4
  -when :shop then
5
5
  %li{:class => "#{'active' if a == 'products'}"}= link_to "Товары", admin_products_path
6
- %li{:class => "#{'active' if a == 'categories'}"}= link_to "Категории", admin_categories_path
7
- %li{:class => "#{'active' if a == 'countries'}"}= link_to "Страны", admin_countries_path
8
- %li{:class => "#{'active' if a == 'regions'}"}= link_to "Регионы", admin_regions_path
9
- %li{:class => "#{'active' if a == 'brands'}"}= link_to "Производители", [:admin, :brands]
10
- %li{:class => "#{'active' if a == 'sliders' && params[:slider_block] == "1"}"}= link_to "Слайдер", admin_sliders_path(slider_block: 1)
11
- %li{:class => "#{'active' if a == 'sliders' && params[:slider_block] == "3"}"}= link_to "Баннеры (маленькие)", admin_sliders_path(slider_block: 3)
12
- %li{:class => "#{'active' if a == 'orders'}"}= link_to "Заказы", [:admin, :orders]
13
-
14
-
15
6
  -when :materials then
16
7
  %li{:class => "#{'active' if a == 'articles'}"}= link_to "Статьи", [:admin, :articles]
17
- %li{:class => "#{'active' if a == 'categories'}"}= link_to "Категории", [:admin, :categories]
18
- %li{:class => "#{'active' if a == 'works'}"}= link_to "Портфолио", [:admin, :works]
19
-
20
-
21
-
22
8
  -when :system
23
9
  %li{:class => "#{'active' if a == 'users'}"}= link_to "Пользователи", admin_users_path
@@ -1,9 +1,9 @@
1
1
  - content_for :page_header do
2
2
  %h1
3
3
  - if @<%= resource_name %>.new_record?
4
- Добавить #{tgenetive(:<%= resource_name %>)}
4
+ Добавить #{taccusative(:<%= resource_name %>)}
5
5
  - else
6
- Редактировать #{tgenetive(:<%= resource_name %>)}
6
+ Редактировать #{taccusative(:<%= resource_name %>)}
7
7
 
8
8
  = form_for [:admin, @<%= resource_name %>] do |f|
9
9
  - if @<%= resource_name %>.errors.any?
@@ -1,6 +1,6 @@
1
1
  - content_for(:page_header) do
2
2
  %h1= tplural(<%= resource_name.capitalize %>)
3
- %p= link_to "Добавить #{tgenetive('<%= resource_name %>')}", [:new, :admin, :<%= resource_name %>]
3
+ %p= link_to "Добавить #{taccusative('<%= resource_name %>')}", [:new, :admin, :<%= resource_name %>]
4
4
 
5
5
  - unless @<%= plural_resource_name %>.empty?
6
6
  %table.list<%= ".sortable" if column_names.include?("position") %>
data/lib/redde/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Redde
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redde
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-08 00:00:00.000000000 Z
12
+ date: 2013-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: russian