mix-rails 0.25.1 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIX_RAILS_VERSION +1 -1
- data/admix/lib/admix/version.rb +2 -2
- data/lib/mix-rails.rb +1 -2
- data/lib/mix-rails/contact-us.rb +1 -0
- data/mix-rails-addresses/lib/mix-rails-addresses/version.rb +2 -2
- data/mix-rails-albums/lib/mix-rails-albums/version.rb +2 -2
- data/mix-rails-auth/lib/mix-rails-auth/version.rb +2 -2
- data/mix-rails-contact-us/.gitignore +7 -0
- data/{mix-rails-vouchers → mix-rails-contact-us}/Gemfile +1 -1
- data/{mix-rails-message-board → mix-rails-contact-us}/MIT-LICENSE +0 -0
- data/mix-rails-contact-us/README.rdoc +3 -0
- data/{mix-rails-vouchers → mix-rails-contact-us}/Rakefile +1 -1
- data/{mix-rails-message-board/app/assets/images/message-board → mix-rails-contact-us/app/assets/images/mix-rails-contact-us}/.gitkeep +0 -0
- data/{mix-rails-message-board/app/assets/javascripts/message-board → mix-rails-contact-us/app/assets/javascripts/mix-rails-contact-us}/.gitkeep +0 -0
- data/{mix-rails-message-board/app/assets/stylesheets/message-board → mix-rails-contact-us/app/assets/stylesheets/mix-rails-contact-us}/.gitkeep +0 -0
- data/{mix-rails-message-board → mix-rails-contact-us}/app/controllers/.gitkeep +0 -0
- data/{mix-rails-message-board → mix-rails-contact-us}/app/helpers/.gitkeep +0 -0
- data/{mix-rails-message-board → mix-rails-contact-us}/app/mailers/.gitkeep +0 -0
- data/{mix-rails-message-board → mix-rails-contact-us}/app/models/.gitkeep +0 -0
- data/{mix-rails-message-board → mix-rails-contact-us}/app/views/.gitkeep +0 -0
- data/mix-rails-contact-us/config/routes.rb +2 -0
- data/mix-rails-contact-us/lib/mix-rails-contact-us.rb +4 -0
- data/mix-rails-contact-us/lib/mix-rails-contact-us/engine.rb +4 -0
- data/{mix-rails-vouchers/lib/mix-rails-vouchers → mix-rails-contact-us/lib/mix-rails-contact-us}/version.rb +4 -4
- data/{mix-rails-message-board/lib/tasks/message-board_tasks.rake → mix-rails-contact-us/lib/tasks/mix-rails-contact-us_tasks.rake} +1 -1
- data/{mix-rails-message-board/mix-rails-message-board.gemspec → mix-rails-contact-us/mix-rails-contact-us.gemspec} +5 -4
- data/{mix-rails-message-board → mix-rails-contact-us}/script/rails +1 -1
- data/mix-rails-core/lib/mix-rails-core/version.rb +2 -2
- data/mix-rails-settings/lib/mix-rails-settings/version.rb +2 -2
- data/mix-rails-songs/lib/mix-rails-songs/version.rb +2 -2
- data/mix-rails-videos/lib/mix-rails-videos/version.rb +2 -2
- data/mix-rails-wireframe/lib/mix-rails-wireframe/version.rb +2 -2
- data/mix-rails-writer/lib/mix-rails-writer/version.rb +2 -2
- data/mix-rails.gemspec +3 -4
- data/version.rb +2 -2
- metadata +54 -137
- data/lib/mix-rails/message-board.rb +0 -1
- data/lib/mix-rails/vouchers.rb +0 -1
- data/mix-rails-message-board/.gitignore +0 -7
- data/mix-rails-message-board/Gemfile +0 -17
- data/mix-rails-message-board/README.rdoc +0 -3
- data/mix-rails-message-board/Rakefile +0 -27
- data/mix-rails-message-board/app/controllers/admix/board_messages_controller.rb +0 -17
- data/mix-rails-message-board/app/controllers/admix/board_replies_controller.rb +0 -21
- data/mix-rails-message-board/app/controllers/admix/dashboard_controller.rb +0 -7
- data/mix-rails-message-board/app/controllers/board_messages_controller.rb +0 -23
- data/mix-rails-message-board/app/mailers/message_board_mailer.rb +0 -10
- data/mix-rails-message-board/app/models/board_message.rb +0 -20
- data/mix-rails-message-board/app/models/board_reply.rb +0 -27
- data/mix-rails-message-board/app/views/admix/board_messages/_form_config.haml +0 -8
- data/mix-rails-message-board/app/views/admix/board_messages/_grid_actions.haml +0 -8
- data/mix-rails-message-board/app/views/admix/board_messages/_grid_columns.haml +0 -9
- data/mix-rails-message-board/app/views/admix/board_messages/_show.html.haml +0 -16
- data/mix-rails-message-board/app/views/admix/board_messages/_table_actions.html.haml +0 -10
- data/mix-rails-message-board/app/views/admix/board_replies/_form_config.haml +0 -8
- data/mix-rails-message-board/app/views/admix/board_replies/_grid_actions.haml +0 -8
- data/mix-rails-message-board/app/views/admix/board_replies/_grid_columns.haml +0 -9
- data/mix-rails-message-board/app/views/admix/board_replies/_show.html.haml +0 -11
- data/mix-rails-message-board/app/views/admix/board_replies/_table_actions.html.haml +0 -8
- data/mix-rails-message-board/app/views/admix/dashboard/index.html.haml +0 -4
- data/mix-rails-message-board/app/views/board_messages/_board_message.html.haml +0 -21
- data/mix-rails-message-board/app/views/board_messages/index.html.haml +0 -16
- data/mix-rails-message-board/app/views/board_messages/show.html.haml +0 -9
- data/mix-rails-message-board/app/views/message_board_mailer/message_replied.text.erb +0 -7
- data/mix-rails-message-board/config/locales/message-board.pt-BR.yml +0 -52
- data/mix-rails-message-board/config/routes.rb +0 -20
- data/mix-rails-message-board/db/migrate/20130208130406_create_board_messages.rb +0 -13
- data/mix-rails-message-board/db/migrate/20130208130716_create_board_replies.rb +0 -14
- data/mix-rails-message-board/lib/mix-rails-message-board.rb +0 -4
- data/mix-rails-message-board/lib/mix-rails-message-board/engine.rb +0 -22
- data/mix-rails-message-board/lib/mix-rails-message-board/version.rb +0 -10
- data/mix-rails-vouchers/.gitignore +0 -7
- data/mix-rails-vouchers/MIT-LICENSE +0 -20
- data/mix-rails-vouchers/README.rdoc +0 -3
- data/mix-rails-vouchers/app/assets/images/mix-vouchers/.gitkeep +0 -0
- data/mix-rails-vouchers/app/assets/javascripts/mix-vouchers/.gitkeep +0 -0
- data/mix-rails-vouchers/app/assets/stylesheets/mix-vouchers/.gitkeep +0 -0
- data/mix-rails-vouchers/app/controllers/admix/vouchers_controller.rb +0 -24
- data/mix-rails-vouchers/app/controllers/vouchers_controller.rb +0 -68
- data/mix-rails-vouchers/app/helpers/.gitkeep +0 -0
- data/mix-rails-vouchers/app/mailers/.gitkeep +0 -0
- data/mix-rails-vouchers/app/mailers/voucher_mailer.rb +0 -10
- data/mix-rails-vouchers/app/models/email_validator.rb +0 -9
- data/mix-rails-vouchers/app/models/voucher.rb +0 -18
- data/mix-rails-vouchers/app/models/voucher_user.rb +0 -43
- data/mix-rails-vouchers/app/models/vouchers/contact.rb +0 -17
- data/mix-rails-vouchers/app/uploaders/vouchers/photo_uploader.rb +0 -63
- data/mix-rails-vouchers/app/views/.gitkeep +0 -0
- data/mix-rails-vouchers/app/views/admix/vouchers/_form_config.haml +0 -15
- data/mix-rails-vouchers/app/views/admix/vouchers/_show.html.haml +0 -9
- data/mix-rails-vouchers/app/views/admix/vouchers/_table_actions.html.haml +0 -9
- data/mix-rails-vouchers/app/views/admix/vouchers/print.html.haml +0 -27
- data/mix-rails-vouchers/app/views/admix/vouchers/users.html.haml +0 -31
- data/mix-rails-vouchers/app/views/voucher_mailer/send_confirmation_link.text.erb +0 -7
- data/mix-rails-vouchers/app/views/vouchers/_voucher.html.haml +0 -12
- data/mix-rails-vouchers/app/views/vouchers/_voucher_show.html.haml +0 -30
- data/mix-rails-vouchers/app/views/vouchers/confirmation.html.haml +0 -0
- data/mix-rails-vouchers/app/views/vouchers/confirmation_error.html.haml +0 -5
- data/mix-rails-vouchers/app/views/vouchers/email_sent.html.haml +0 -4
- data/mix-rails-vouchers/app/views/vouchers/index.html.haml +0 -9
- data/mix-rails-vouchers/app/views/vouchers/print.html.haml +0 -56
- data/mix-rails-vouchers/app/views/vouchers/show.html.haml +0 -3
- data/mix-rails-vouchers/config/locales/vouchers.pt-BR.yml +0 -16
- data/mix-rails-vouchers/config/routes.rb +0 -15
- data/mix-rails-vouchers/db/migrate/20130208143458_create_vouchers.rb +0 -15
- data/mix-rails-vouchers/db/migrate/20130208143613_create_voucher_users.rb +0 -13
- data/mix-rails-vouchers/lib/mix-rails-vouchers.rb +0 -4
- data/mix-rails-vouchers/lib/mix-rails-vouchers/engine.rb +0 -21
- data/mix-rails-vouchers/lib/tasks/mix-vouchers_tasks.rake +0 -4
- data/mix-rails-vouchers/mix-rails-vouchers.gemspec +0 -20
- data/mix-rails-vouchers/script/rails +0 -8
@@ -1 +0,0 @@
|
|
1
|
-
require 'mix-rails-message-board'
|
data/lib/mix-rails/vouchers.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'mix-rails-vouchers'
|
@@ -1,17 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
|
3
|
-
# Declare your gem's dependencies in message-board.gemspec.
|
4
|
-
# Bundler will treat runtime dependencies like base dependencies, and
|
5
|
-
# development dependencies will be added by default to the :development group.
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
# jquery-rails is used by the dummy application
|
9
|
-
gem "jquery-rails"
|
10
|
-
|
11
|
-
# Declare any dependencies that are still in development here instead of in
|
12
|
-
# your gemspec. These might include edge Rails or gems from your path or
|
13
|
-
# Git. Remember to move these dependencies to your gemspec before releasing
|
14
|
-
# your gem to rubygems.org.
|
15
|
-
|
16
|
-
# To use debugger
|
17
|
-
# gem 'debugger'
|
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env rake
|
2
|
-
begin
|
3
|
-
require 'bundler/setup'
|
4
|
-
rescue LoadError
|
5
|
-
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'rdoc/task'
|
9
|
-
rescue LoadError
|
10
|
-
require 'rdoc/rdoc'
|
11
|
-
require 'rake/rdoctask'
|
12
|
-
RDoc::Task = Rake::RDocTask
|
13
|
-
end
|
14
|
-
|
15
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
-
rdoc.rdoc_dir = 'rdoc'
|
17
|
-
rdoc.title = 'MessageBoard'
|
18
|
-
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.rdoc')
|
20
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
-
end
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
Bundler::GemHelper.install_tasks
|
27
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class Admix::BoardMessagesController < Admix::InheritedController
|
2
|
-
|
3
|
-
def approve
|
4
|
-
resource.status = :approved
|
5
|
-
resource.save!
|
6
|
-
flash[:notice] = t('boardmessages.flashes.approved')
|
7
|
-
redirect_to collection_url
|
8
|
-
end
|
9
|
-
|
10
|
-
def disapprove
|
11
|
-
resource.status = :disapproved
|
12
|
-
resource.save!
|
13
|
-
flash[:notice] = t('boardmessages.flashes.disapproved')
|
14
|
-
redirect_to collection_url
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
class Admix::BoardRepliesController < Admix::InheritedController
|
2
|
-
|
3
|
-
polymorphic_belongs_to :board_message, param: :board_message_id
|
4
|
-
|
5
|
-
after_filter :message_replied, only: [:create]
|
6
|
-
|
7
|
-
def message_replied
|
8
|
-
if resource.errors.empty?
|
9
|
-
MessageBoardMailer.message_replied(parent).deliver
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def report
|
14
|
-
datagrid = @datagrid_class.new(params[:guess_datagrid_params])
|
15
|
-
datagrid.scope do
|
16
|
-
parent.board_replies
|
17
|
-
end
|
18
|
-
datagrid
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
class BoardMessagesController < ApplicationController
|
2
|
-
|
3
|
-
def index
|
4
|
-
@board_message = BoardMessage.new
|
5
|
-
@board_messages = BoardMessage.approved.order('board_messages.date DESC').paginate(:page => params[:page], :per_page => 12)
|
6
|
-
end
|
7
|
-
|
8
|
-
def create
|
9
|
-
@board_message = BoardMessage.new(params[:board_message])
|
10
|
-
if @board_message.save
|
11
|
-
flash[:notice] = t('message_board.flashes.success_wait_moderation')
|
12
|
-
redirect_to board_messages_path
|
13
|
-
else
|
14
|
-
@board_messages = BoardMessage.approved.paginate(:page => params[:page], :per_page => 12)
|
15
|
-
render 'index'
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def show
|
20
|
-
@board_message = BoardMessage.includes(:board_replies).find(params[:id])
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
class BoardMessage < ActiveRecord::Base
|
2
|
-
extend Enumerize
|
3
|
-
|
4
|
-
attr_accessible :date, :email, :message, :name, :status
|
5
|
-
enumerize :status, in: [:pending, :approved, :disapproved], default: :pending, predicates: true
|
6
|
-
|
7
|
-
validates_presence_of :name, :email, :message, :date
|
8
|
-
validates :email, email: true
|
9
|
-
|
10
|
-
scope :approved, where(status: :approved)
|
11
|
-
scope :pending, where(status: :pending)
|
12
|
-
|
13
|
-
has_many :board_replies
|
14
|
-
|
15
|
-
|
16
|
-
default_value_for :date do
|
17
|
-
Time.now
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
class BoardReply < ActiveRecord::Base
|
2
|
-
extend Enumerize
|
3
|
-
|
4
|
-
attr_accessible :date, :email, :message, :name, :status
|
5
|
-
enumerize :status, in: [:pending, :approved, :disapproved], default: :pending, predicates: true
|
6
|
-
|
7
|
-
validates_presence_of :name, :email, :message, :date
|
8
|
-
validates :email, email: true
|
9
|
-
|
10
|
-
scope :approved, where(status: :approved)
|
11
|
-
scope :pending, where(status: :pending)
|
12
|
-
|
13
|
-
belongs_to :board_message
|
14
|
-
|
15
|
-
default_value_for :name do
|
16
|
-
Setting.app_title
|
17
|
-
end
|
18
|
-
|
19
|
-
default_value_for :email do
|
20
|
-
Setting.app_email
|
21
|
-
end
|
22
|
-
|
23
|
-
default_value_for :date do
|
24
|
-
Time.now
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
@@ -1,8 +0,0 @@
|
|
1
|
-
- admix_tab t('board_messages.board_message') do |t|
|
2
|
-
- t.tab_content do
|
3
|
-
= f.input :name, as: 'string', input_html: {class: 'span12'}
|
4
|
-
= f.input :email, as: 'email', input_html: {class: 'span12'}
|
5
|
-
= f.input :message, as: 'text', input_html: {class: 'span12'}
|
6
|
-
= f.input :date, as: 'datepicker', input_html: {class: 'span12'}
|
7
|
-
- content_for :form_options do
|
8
|
-
= f.input :status, input_html: {class: 'span12'}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
- if obj.disapproved? or obj.status.pending?
|
2
|
-
= link_to image_tag('admix/icons/shield_go.png'), approve_admix_board_message_path(obj), method: :put, data: { confirm: t('message_board.confirms.approve') }, class: 'btn', title:'Aprovar'
|
3
|
-
- if obj.status.approved? or obj.status.pending?
|
4
|
-
= link_to image_tag('admix/icons/shield_delete.png'), disapprove_admix_board_message_path(obj), method: :put,data: { confirm: t('message_board.confirms.disapprove') }, class: 'btn', title:'Reprovar'
|
5
|
-
|
6
|
-
= link_to image_tag('admix/icons/comment_add.png'), new_admix_board_message_board_reply_path(obj), class: 'btn', title:'Adicionar comentário'
|
7
|
-
|
8
|
-
= grid_actions_for(obj, [:show, :edit, :destroy])
|
@@ -1,9 +0,0 @@
|
|
1
|
-
- grid.column name: input_label(:defaults, :name), attribute: 'name' do |obj|
|
2
|
-
- obj.name
|
3
|
-
- grid.column name: input_label(:defaults, :date), attribute: 'date' do |obj|
|
4
|
-
- obj.date
|
5
|
-
|
6
|
-
- grid.column name: input_label(:defaults, :status), attribute: 'status',
|
7
|
-
custom_filter: {t('enumerize.status.approved') => 'approved', t('enumerize.status.disapproved') => 'disapproved', t('enumerize.status.pending') => 'pending'} do |obj|
|
8
|
-
- obj.status.text
|
9
|
-
- column_actions(grid)
|
@@ -1,16 +0,0 @@
|
|
1
|
-
%dl
|
2
|
-
%dt= input_label(:board_message, :name)
|
3
|
-
%dd= resource.name
|
4
|
-
%dt= input_label(:board_message, :email)
|
5
|
-
%dd= resource.email
|
6
|
-
%dt= input_label(:board_message, :message)
|
7
|
-
%dd= resource.message
|
8
|
-
%dt= input_label(:board_message, :date)
|
9
|
-
%dd= localize(resource.date)
|
10
|
-
%dt= input_label(:board_message, :status)
|
11
|
-
%dd
|
12
|
-
= resource.status.text
|
13
|
-
- if resource.disapproved? or resource.status.pending?
|
14
|
-
= link_to image_tag('admix/icons/shield_go.png'), approve_admix_board_message_path(resource), method: :put, data: { confirm: t('message_board.confirms.approve') }, class: 'btn', title:'Aprovar'
|
15
|
-
- if resource.status.approved? or resource.status.pending?
|
16
|
-
= link_to image_tag('admix/icons/shield_delete.png'), disapprove_admix_board_message_path(resource), method: :put,data: { confirm: t('message_board.confirms.disapprove') }, class: 'btn', title:'Reprovar'
|
@@ -1,10 +0,0 @@
|
|
1
|
-
- if resource.disapproved? or resource.status.pending?
|
2
|
-
= link_to image_tag('admix/icons/shield_go.png'), approve_admix_board_message_path(resource), method: :put, data: { confirm: t('message_board.confirms.approve') }, class: 'btn', title:'Aprovar'
|
3
|
-
- if resource.status.approved? or resource.status.pending?
|
4
|
-
= link_to image_tag('admix/icons/shield_delete.png'), disapprove_admix_board_message_path(resource), method: :put,data: { confirm: t('message_board.confirms.disapprove') }, class: 'btn', title:'Reprovar'
|
5
|
-
|
6
|
-
= link_to image_tag('admix/icons/comment_add.png'), new_admix_board_message_board_reply_path(resource), class: 'btn', title:'Adicionar comentário'
|
7
|
-
|
8
|
-
= link_to image_tag('admix/zoom.png'), resource_url(resource), class: 'btn', title:'Visualizar registro'
|
9
|
-
= link_to image_tag('admix/page_edit.png'), edit_resource_url(resource), class: 'btn', title:'Editar registro'
|
10
|
-
= link_to image_tag('admix/cancel.png'), resource_url(resource), method: :delete, data: { confirm: t('admix.crud.destroy_confirm') }, class: 'btn', title:'Deletar registro'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
- admix_tab t('board_messages.board_message') do |t|
|
2
|
-
- t.tab_content do
|
3
|
-
= f.input :name, as: 'string', input_html: {class: 'span12'}
|
4
|
-
= f.input :email, as: 'email', input_html: {class: 'span12'}
|
5
|
-
= f.input :message, as: 'text', input_html: {class: 'span12'}
|
6
|
-
= f.input :date, as: 'datepicker', input_html: {class: 'span12'}
|
7
|
-
- content_for :form_options do
|
8
|
-
= f.input :status, input_html: {class: 'span12'}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
- if obj.disapproved? or obj.status.pending?
|
2
|
-
= link_to image_tag('admix/icons/shield_go.png'), approve_admix_board_message_path(obj), method: :put, data: { confirm: t('message_board.confirms.approve') }, class: 'btn', title:'Aprovar'
|
3
|
-
- if obj.status.approved? or obj.status.pending?
|
4
|
-
= link_to image_tag('admix/icons/shield_delete.png'), disapprove_admix_board_message_path(obj), method: :put,data: { confirm: t('message_board.confirms.disapprove') }, class: 'btn', title:'Reprovar'
|
5
|
-
|
6
|
-
= link_to image_tag('admix/icons/comment_add.png'), new_admix_board_message_board_reply_path(obj), class: 'btn', title:'Adicionar comentário'
|
7
|
-
|
8
|
-
= grid_actions_for(obj, [:show, :edit, :destroy])
|
@@ -1,9 +0,0 @@
|
|
1
|
-
- grid.column name: input_label(:defaults, :name), attribute: 'name' do |obj|
|
2
|
-
- obj.name
|
3
|
-
- grid.column name: input_label(:defaults, :date), attribute: 'date' do |obj|
|
4
|
-
- obj.date
|
5
|
-
|
6
|
-
- grid.column name: input_label(:defaults, :status), attribute: 'status',
|
7
|
-
custom_filter: {t('enumerize.status.approved') => 'approved', t('enumerize.status.disapproved') => 'disapproved', t('enumerize.status.pending') => 'pending'} do |obj|
|
8
|
-
- obj.status.text
|
9
|
-
- column_actions(grid)
|
@@ -1,11 +0,0 @@
|
|
1
|
-
%dl
|
2
|
-
%dt= input_label(:board_message, :name)
|
3
|
-
%dd= resource.name
|
4
|
-
%dt= input_label(:board_message, :email)
|
5
|
-
%dd= resource.email
|
6
|
-
%dt= input_label(:board_message, :message)
|
7
|
-
%dd= resource.message
|
8
|
-
%dt= input_label(:board_message, :date)
|
9
|
-
%dd= localize(resource.date)
|
10
|
-
%dt= input_label(:board_message, :status)
|
11
|
-
%dd= resource.status.text
|
@@ -1,8 +0,0 @@
|
|
1
|
-
- if resource.disapproved? or resource.status.pending?
|
2
|
-
= link_to image_tag('admix/icons/shield_go.png'), approve_admix_board_message_path(resource), method: :put, data: { confirm: t('message_board.confirms.approve') }, class: 'btn', title:'Aprovar'
|
3
|
-
- if resource.status.approved? or resource.status.pending?
|
4
|
-
= link_to image_tag('admix/icons/shield_delete.png'), disapprove_admix_board_message_path(resource), method: :put,data: { confirm: t('message_board.confirms.disapprove') }, class: 'btn', title:'Reprovar'
|
5
|
-
|
6
|
-
= link_to image_tag('admix/zoom.png'), resource_url(resource), class: 'btn', title:'Visualizar registro'
|
7
|
-
= link_to image_tag('admix/page_edit.png'), edit_resource_url(resource), class: 'btn', title:'Editar registro'
|
8
|
-
= link_to image_tag('admix/cancel.png'), resource_url(resource), method: :delete, data: { confirm: t('admix.crud.destroy_confirm') }, class: 'btn', title:'Deletar registro'
|
@@ -1,21 +0,0 @@
|
|
1
|
-
%li
|
2
|
-
%p
|
3
|
-
%span.red= link_to board_message.name, board_message_path(board_message)
|
4
|
-
|
|
5
|
-
%small
|
6
|
-
%span.white= I18n.localize(board_message.date)
|
7
|
-
%p.muted.p.super= board_message.message
|
8
|
-
- if board_message.board_replies
|
9
|
-
- board_message.board_replies.each do |r|
|
10
|
-
.pad.p
|
11
|
-
%span.yellow= r.name
|
12
|
-
%span :
|
13
|
-
= r.message
|
14
|
-
.p
|
15
|
-
.pull-left
|
16
|
-
%a.addthis_button_facebook_like{"addthis:url" => board_message_url(board_message),"fb:like:layout" => "button_count"}
|
17
|
-
.pull-left
|
18
|
-
%a.addthis_button_tweet{'tw:text' => "#{app_title}: #{@board_message.name}: #{@board_message.message} #{board_message_url(board_message)}"}
|
19
|
-
.pull-left
|
20
|
-
%a.addthis_button_google_plusone
|
21
|
-
.clearfix
|
@@ -1,16 +0,0 @@
|
|
1
|
-
- content_for(:board_messages_content) do
|
2
|
-
= simple_form_for @board_message do |f|
|
3
|
-
= f.error_notification
|
4
|
-
.row.p
|
5
|
-
.span8
|
6
|
-
.p= f.input :name, input_html: {class: 'span8'}
|
7
|
-
%div= f.input :email, input_html: {class: 'span8'}
|
8
|
-
.span8= f.input :message, as: 'text', input_html: {class: 'span8'}
|
9
|
-
.ta-r
|
10
|
-
%button.no-style{:type => "submit"}
|
11
|
-
= image_tag 'btn_enviar.png'
|
12
|
-
%hr.great-margin
|
13
|
-
%ul.list.sequential
|
14
|
-
= render @board_messages
|
15
|
-
= will_paginate @board_messages
|
16
|
-
= render template: 'templates/board_messages/index'
|
@@ -1,9 +0,0 @@
|
|
1
|
-
- content_for :metas do
|
2
|
-
%meta{property: "og:title", content: "Mural de recados do Forró com Turista"}
|
3
|
-
%meta{property: "og:type", content: "website"}
|
4
|
-
%meta{property: "og:image", content: asset_path('forrocomturista_logo.jpg')}
|
5
|
-
%meta{property: "og:description", content: "#{@board_message.name}: #{@board_message.message}" }
|
6
|
-
|
7
|
-
- content_for(:board_message_content) do
|
8
|
-
= render @board_message
|
9
|
-
= render template: 'templates/board_messages/show'
|
@@ -1,52 +0,0 @@
|
|
1
|
-
pt-BR:
|
2
|
-
|
3
|
-
resources:
|
4
|
-
board_messages: 'mural-de-recados'
|
5
|
-
|
6
|
-
will_paginate:
|
7
|
-
previous_label: "<< anterior"
|
8
|
-
next_label: "próximo >>"
|
9
|
-
|
10
|
-
activerecord:
|
11
|
-
models:
|
12
|
-
board_message: 'Mensagem'
|
13
|
-
board_reply: 'Resposta'
|
14
|
-
board_messages:
|
15
|
-
board_messages: 'Mural de recados'
|
16
|
-
board_message: 'Recado'
|
17
|
-
board_replies:
|
18
|
-
board_replies: 'Respostas do mural'
|
19
|
-
board_reply: 'Resposta do mural'
|
20
|
-
board_message: 'Resposta'
|
21
|
-
simple_form:
|
22
|
-
labels:
|
23
|
-
board_message:
|
24
|
-
replies_count: 'Respostas (Qtde)'
|
25
|
-
|
26
|
-
message_board:
|
27
|
-
confirms:
|
28
|
-
approve: 'Tem certeza que deseja aprovar?'
|
29
|
-
disapprove: 'Tem certeza que deseja reprovar?'
|
30
|
-
message_board: 'Mural de Recados'
|
31
|
-
message: 'Mensagem'
|
32
|
-
messages: 'Mensagens'
|
33
|
-
flashes:
|
34
|
-
success_wait_moderation: 'Seu recado foi enviado. Por favor aguardar moderação.'
|
35
|
-
mailers:
|
36
|
-
message_replied:
|
37
|
-
subject: 'Sua mensagem foi respondida.'
|
38
|
-
|
39
|
-
boardmessages:
|
40
|
-
boardmessages: 'Mensagens'
|
41
|
-
boardmessage: 'Mensagem'
|
42
|
-
flashes:
|
43
|
-
approved: 'A mensagem foi aprovada.'
|
44
|
-
disapproved: 'A mensagem foi reprovada.'
|
45
|
-
|
46
|
-
boardreplies:
|
47
|
-
boardreplies: 'Respostas'
|
48
|
-
boardreply: 'Resposta'
|
49
|
-
flashes:
|
50
|
-
approved: 'A mensagem foi aprovada.'
|
51
|
-
disapproved: 'A mensagem foi reprovada.'
|
52
|
-
|