Commit 749c45c6 authored by marcheing's avatar marcheing Committed by Diego de Araújo Martinez Camarinha

Convert application templates to slim

parent 16c59388
<footer>
<ul>
<li><%= t('recommend') %></li>
<li><%= t('copyright') %></li>
<li><%= t('public_domain') %></li>
<li><%= t('creative_commons') %></li>
</ul>
<ul>
<li><%= t('partners') %></li>
<li><%= t('youtube') %></li>
<li><%= t('uol') %></li>
<li><%= t('facebook') %></li>
</ul>
<ul>
<li><%= t('minute') %></li>
<li><%= t('events') %></li>
<li><%= t('show') %></li>
<li><%= t('terms') %></li>
<li><%= t('sponsor') %></li>
</ul>
<div>
<h3><%= t('quick') %></h3>
<select>
<option value="videos"><%= t('videos') %></option>
<option value="enviar conteudo"><%= t('submit') %></option>
<option value="concursos"><%= t('contests') %></option>
<option value="noticias"><%= t('news') %></option>
<option value="ajuda"><%= t('help') %></option>
<option value="imprensa"><%= t('press') %></option>
<option value="contato"><%= t('contact') %></option>
</select>
</div>
</footer>
footer
ul
li
= t('recommend')
li
= t('copyright')
li
= t('public_domain')
li
= t('creative_commons')
ul
li
= t('partners')
li
= t('youtube')
li
= t('uol')
li
= t('facebook')
ul
li
= t('minute')
li
= t('events')
li
= t('show')
li
= t('terms')
li
= t('sponsor')
div
h3
= t('quick')
select
option[value="videos"]
= t('videos')
option[value="enviar conteudo"]
= t('submit')
option[value="concursos"]
= t('contests')
option[value="noticias"]
= t('news')
option[value="ajuda"]
= t('help')
option[value="imprensa"]
= t('press')
option[value="contato"]
= t('contact')
<header class="general-header">
<div class="top-bar">
<div class="top-bar-title">
<div class="logo">
<%= link_to(image_tag(i18n_logo, class: 'img-responsive'), root_path) %>
</div>
<span data-responsive-toggle="responsive-menu" data-hide-for="large">
<span class="menu-icon dark" data-toggle></span>
</span>
</div>
<div id="responsive-menu">
<div class="top-bar-right">
<ul class="dropdown menu primary-menu" data-dropdown-menu>
<li>
<%= link_to(t('upload_content'), new_content_path, class: 'featured-link') %>
</li>
<li>
<%= link_to(t('contests'), '#') %>
</li>
<% if user_signed_in? %>
<li>
<a href="#">
<%= t("account.my") %> <span class="caret"></span>
</a>
<ul class="menu">
<li>
<%= link_to t('account.edit'), edit_user_registration_path(current_user.id) %>
</li>
<li>
<% if current_user.profile.present? %>
<%= link_to t('profile_links.edit'), edit_profile_path(current_user.profile.id) %>
<% else %>
<%= link_to t('profile_links.new'), new_profile_path %>
<% end %>
</li>
<li>
<!-- TODO: this would be a route to my_contents_path(current_user) -->
<%= link_to t('account.contents'), '#' %>
</li>
<li>
<!-- TODO: this would be a route to my_friends_path(current_user) -->
<%= link_to t('account.friends'), '#' %>
</li>
<li>
<%= link_to t('account.signout'), destroy_user_session_path, method: :delete %>
</li>
</ul>
</li>
<% else %>
<li>
<%= link_to t('account.signup'), new_user_registration_path %>
</li>
<li>
<a id="login_link" data-open="login-modal"><%= t('login') %></a>
</li>
<% end %>
<li>
<a class="language-selector" href="#"><%= t('home.language') %></a>
<ul class="menu">
<% I18n.available_locales.each do |locale| %>
<li>
<%= link_to("/#{locale}", data: { no_turbolink: true }, class: locale) do %>
<%= image_tag("#{locale}-icon.png") %><%= locale == :en ? 'english' : 'português' %>
<% end %>
</li>
<% end %>
</ul>
</li>
</ul>
<ul class="menu secondary-menu">
<li>
<form action="search.html" method="get">
<input class="search-box" type="search" placeholder="<%= t('looking_for') %>">
<button type="submit" class="search-button">
<i class="fa fa-search"></i>
</button>
</form>
</li>
<li>
<div class="social-links-group">
<%= link_to 'http://facebook.com/festivaldominuto', target: '_blank' do %>
<i class="fa fa-facebook"></i>
<% end %>
<%= link_to 'http://twitter.com/festivaldominuto', target: '_blank' do %>
<i class="fa fa-twitter"></i>
<% end %>
<%= link_to 'http://vimeo.com/oneminutefestivalbr', target: '_blank' do %>
<i class="fa fa-vimeo"></i>
<% end %>
<%= link_to 'http://youtube.com/user/festivaldominuto', target: '_blank' do %>
<i class="fa fa-youtube-play"></i>
<% end %>
</div>
</li>
</ul>
</div>
</div>
</div>
</header>
<% unless user_signed_in? %>
<div class="reveal tiny" id="login-modal" data-reveal>
<h3><%= t('home.do_login') %></h3>
<a class="fb-button" href="#">
<i class="fa fa-facebook-square"></i>&nbsp; <%= t('home.login_with_facebook') %>
</a>
<hr>
<p class="lead"><%= t('complete_form') %>:</p>
<%= form_for(:user, url: session_path(:user)) do |f| %>
<div class="field">
<%= f.label t('email') %><br />
<%= f.email_field :email, autofocus: true, class: 'search-box' %>
</div>
<div class="field">
<%= f.label t('password') %><br />
<%= f.password_field :password, autocomplete: "off", class: 'search-box' %>
</div>
<div class="field">
<%= f.check_box :remember_me %>
<%= f.label t('remember_me') %>
</div>
<%= f.submit I18n.t('enter'), class: 'button' %>
<% end %>
<button class="close-button" data-close aria-label="Close modal" type="button">
<span aria-hidden="true">&times;</span>
</button>
</div>
<% end %>
header.general-header
.top-bar
.top-bar-title
.logo
= link_to(image_tag(i18n_logo, class: 'img-responsive'), root_path)
span[data-responsive-toggle="responsive-menu" data-hide-for="large"]
span.menu-icon.dark[data-toggle]
#responsive-menu
.top-bar-right
ul.dropdown.menu.primary-menu[data-dropdown-menu]
li
= link_to(t('upload_content'), new_content_path, class: 'featured-link')
li
= link_to(t('contests'), '#')
- if user_signed_in?
li
a[href="#"]
= t("account.my")
span.caret
ul.menu
li
= link_to t('account.edit'), edit_user_registration_path(current_user.id)
li
- if current_user.profile.present?
= link_to t('profile_links.edit'), edit_profile_path(current_user.profile.id)
- else
= link_to t('profile_links.new'), new_profile_path
li
= link_to t('account.contents'), '#'
li
= link_to t('account.friends'), '#'
li
= link_to t('account.signout'), destroy_user_session_path, method: :delete
- else
li
= link_to t('account.signup'), new_user_registration_path
li
a#login_link[data-open="login-modal"]
= t('login')
li
a.language-selector[href="#"]
= t('home.language')
ul.menu
- I18n.available_locales.each do |locale|
li
= link_to("/#{locale}", data: { no_turbolink: true }, class: locale) do
= image_tag("#{locale}-icon.png")
= locale == :en ? 'english' : 'português'
ul.menu.secondary-menu
li
form[action="search.html" method="get"]
| <input class="search-box" type="search" placeholder="
= t('looking_for')
| ">
button.search-button[type="submit"]
i.fa.fa-search
li
.social-links-group
= link_to 'http://facebook.com/festivaldominuto', target: '_blank' do
i.fa.fa-facebook
= link_to 'http://twitter.com/festivaldominuto', target: '_blank' do
i.fa.fa-twitter
= link_to 'http://vimeo.com/oneminutefestivalbr', target: '_blank' do
i.fa.fa-vimeo
= link_to 'http://youtube.com/user/festivaldominuto', target: '_blank' do
i.fa.fa-youtube-play
- unless user_signed_in?
#login-modal.reveal.tiny[data-reveal]
h3
= t('home.do_login')
a.fb-button[href="#"]
i.fa.fa-facebook-square
|  
= t('home.login_with_facebook')
hr
p.lead
= t('complete_form')
| :
= form_for(:user, url: session_path(:user)) do |f|
.field
= f.label t('email')
br
= f.email_field :email, autofocus: true, class: 'search-box'
.field
= f.label t('password')
br
= f.password_field :password, autocomplete: "off", class: 'search-box'
.field
= f.check_box :remember_me
= f.label t('remember_me')
= f.submit I18n.t('enter'), class: 'button'
button.close-button[data-close aria-label="Close modal" type="button"]
span[aria-hidden="true"]
| ×
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment