The working basics

This commit is contained in:
Godwin
2014-03-09 14:43:33 -06:00
parent b490a97852
commit db60933506
628 changed files with 81918 additions and 1060 deletions
+4 -5
View File
@@ -1,6 +1,5 @@
%hr
%footer
%p
= link_to 'https://github.com/diowa/ruby2-rails4-bootstrap-heroku' do
%i.icon-github
diowa/ruby2-rails4-bootstrap-heroku
%p
= link_to 'https://github.com/diowa/ruby2-rails4-bootstrap-heroku' do
%i.icon-github
diowa/ruby2-rails4-bootstrap-heroku
+13 -12
View File
@@ -1,5 +1,5 @@
%nav.top-bar
%nav.top-bar.row
#nav-inner
%ul.title-area
/ Title Area
@@ -13,18 +13,19 @@
.top-bar-section
/ Left Nav Section
%ul.left
%li.divider
%li.active
%a{href: "#"} Conferences
%li.divider
%a{href: "/conferences/"} Conferences
%li
%a{href: "#"} Organizations
%li.divider
%a{href: "/organizations/"} Organizations
%li
%a{href: "#"} Resources
%li.divider
/ Right Nav Section
%a{href: "/resources/"} Resources
/ Right Nav Section
%ul.right
%li.divider.hide-for-small
%li.has-form
%a.button{href: "#"} Sign In!
- if current_user
%li.has-form.sign-out
= link_to "Sign Out", :logout, method: :post, :class => 'button'
%li.user-profile
= link_to image_tag(current_user.avatar_url(:icon)), current_user
- else
%li.has-form.sign-in
= link_to "Sign In", :login, :class => 'button'
@@ -0,0 +1,27 @@
- if ThereAreTranslationsOnThisPage?
- counts = {'one' => _('translation.count.one'), 'zero' => _('translation.count.zero'), 'two' => _('translation.count.two'), 'few' => _('translation.count.few'), 'many' => _('translation.count.many')}
- save_str = _ 'active_record.save'
= javascript_include_tag 'translate'
%div#translation-control
= form_tag '/translate/' do
= hidden_field_tag :translationlang, I18n.locale
.row
.columns.medium-3
= select_tag :translationkey, options_for_select(get_all_translations().invert())
.columns.medium-8
= text_area_tag :translationvalue, '', :rows => '1'
#translatepluralizations
= hidden_field_tag :translationhascount, I18n.locale
- counts.each do |count_key,count_name|
.row
.columns.medium-2
= check_box_tag ('translationpluralization_' + count_key.to_s)
= label_tag ('translationpluralization_' + count_key.to_s), count_name.to_s
.columns.medium-10
= text_area_tag ('translationvalue_' + count_key.to_s), '', :rows => '1'
#translatevars
%strong Parameters:
%ul
.columns.medium-1
= button_tag save_str