Added conference list page, administration tools, and re-designed conference administration

This commit is contained in:
Godwin
2016-12-11 20:02:24 -08:00
parent 08244444b0
commit 1dc608bf58
175 changed files with 12225 additions and 11806 deletions
+31 -28
View File
@@ -1,28 +1,31 @@
.external
.facebook
=_'links.footer.help_text.facebook', 'Join our facebook group' do |title|
%a{href: 'https://www.facebook.com/groups/648758205249998/', target: :_blank, title: title}
=svg_sprite 'icons', 'bb-icon-fb', 'facebook logo'
.github
%a{href: 'https://github.com/bikebike/BikeBike', target: :_blank}
= off_screen(_'links.footer.text.Help_contribute')
= svg_sprite 'icons', 'bb-icon-github', 'github logo'
.user-controls
- if logged_in?
= link_to (_!current_user.name), settings_path, class: 'my-account'
= _!' | '
= link_to (_'forms.actions.generic.Log_out'), logout_path, class: 'logout'
- else
= signin_link
%ul.locales
- @alt_lang_urls.each do |locale, url|
%li
- locale_translation = language_name(locale, true)
%a{href: url, lang: locale}
=_'translate.content.change_locale', "Read in #{locale_translation}", vars: {language: locale_translation}, locale: locale if locale != I18n.locale.to_s
.site-info
.contact-us=link_to (_'links.footer.help_text.contact'), contact_path, id: 'contact-link'
.copy
=_'links.footer.help_text.contributors', 'Who contributed to building this website' do |title|
=link_to :humans_txt, {title: title} do
=((_!"©#{Date.today.strftime("%Y")} Bike!Bike!") || '').html_safe
- protect do
.external
.facebook
=_'links.footer.help_text.facebook', 'Join our facebook group' do |title|
%a{href: 'https://www.facebook.com/groups/648758205249998/', target: :_blank, title: title}
-#= svg_sprite 'icons', 'bb-icon-fb', 'facebook logo'
= svg 'facebook', 'facebook logo'
.github
=_'links.footer.text.Help_contribute' do |title|
%a{href: 'https://github.com/bikebike/BikeBike', target: :_blank, title: title}
-#= svg_sprite 'icons', 'bb-icon-github', 'github logo'
= svg 'github', 'github logo'
.user-controls
- if logged_in?
= link_to (_!current_user.name), settings_path, class: 'my-account'
= _!' | '
= link_to (_'forms.actions.generic.Log_out'), logout_path, class: 'logout'
- else
= signin_link
%ul.locales
-# - @alt_lang_urls.each do |locale, url|
-# %li
-# - locale_translation = language_name(locale, true)
-# %a{href: url, lang: locale}
-# =_'translate.content.change_locale', "Read in #{locale_translation}", vars: {language: locale_translation}, locale: locale if locale != I18n.locale.to_s
.site-info
.contact-us=link_to (_'links.footer.help_text.contact'), contact_path, id: 'contact-link'
.copy
=_'links.footer.help_text.contributors', 'Who contributed to building this website' do |title|
=link_to :humans_txt, {title: title} do
=((_!"©#{Date.today.strftime("%Y")} Bike!Bike!") || '').html_safe
+26 -20
View File
@@ -1,21 +1,27 @@
%nav
#main-nav
- begin
= row(class: 'inner-nav') do
= columns(medium: 4, class: 'inner-nav') do
= link_to home_path, :class => 'logo' do
= svg_sprite('icons', "bb-icon-logo", "Logo")
= svg_sprite('icons', "bb-icon-logo-text", "Logo Text")
= off_screen _!'Bike Bike'
= columns(medium: 8, class: 'nav') do
= nav_link :about
= nav_link :policy
- case (@conference && @conference.registration_status ? @conference.registration_status.to_sym : :closed)
- when :pre
= nav_link register_path(@conference.slug), :pre_register, :register
- when :open
= nav_link register_path(@conference.slug), :register
- else
= render 'shared/donate_button', :email_address => (@conference.paypal_email_address || @conference.email_address || (@conference.organizations.present? && @conference.organizations.first.present? ? @conference.organizations.first.email_address : nil))
- rescue
#main-nav
= row(class: 'inner-nav') do
= columns(medium: 3) do
- protect do
= link_to home_path, :class => 'logo' do
-#= svg_sprite('icons', "bb-icon-logo", "Logo")
-#= svg_sprite('icons', "bb-icon-logo-text", "Logo Text")
= svg 'logo', (_!'Bike Bike')
= svg 'logo-text', (_!'Bike Bike')
= off_screen _!'Bike Bike'
= columns(medium: 6, class: 'nav') do
- protect do
= nav_link :about
= nav_link :policy
= nav_link :conferences
= columns(medium: 3, class: 'locale-nav') do
- protect do
%ul.locales
- @alt_lang_urls.each do |locale, url|
%li{class: locale == I18n.locale.to_s ? 'current' : nil}
- locale_translation = language_name(locale, true)
- translation_text = (_'translate.content.change_locale', "Read in #{locale_translation}", vars: {language: locale_translation}, locale: locale)
%a{href: url, lang: locale, title: translation_text}
%span{aria: {hidden: true}}=locale
= off_screen translation_text