Theme the site with the current OpenFest WP Theme

This commit is contained in:
Petko Bordjukov 2014-07-29 13:36:54 +03:00
parent 28d99528de
commit fdd2656a7b
3 changed files with 56 additions and 10 deletions

View File

@ -12,5 +12,4 @@
// //
//= require jquery //= require jquery
//= require jquery_ujs //= require jquery_ujs
//= require turbolinks
//= require_tree . //= require_tree .

View File

@ -0,0 +1,27 @@
<nav class="menu">
<ul class="sf-menu sf-js-enabled">
<%= content_tag :li, class: [('current_page_item' if controller_name == 'home')] do %>
<%= link_to 'Начало', root_path %>
<% end %>
<% unless user_signed_in? %>
<%= content_tag :li, class: [('current_page_item' if controller_name == 'sessions')] do %>
<%= link_to "Вход", new_user_session_path %>
<% end %>
<%= content_tag :li, class: [('current_page_item' if controller_name == 'registrations')] do %>
<%= link_to "Регистрация", new_user_registration_path %>
<% end %>
<% else %>
<%= content_tag :li, class: [('current_page_item' if controller_name == 'registrations')] do %>
<%= link_to "Редакция на профил", edit_user_registration_path %>
<% end %>
<li>
<%= link_to "Изход", destroy_user_session_path, method: :delete %>
</li>
<% end %>
<li>
<a href="#">English</a>
</li>
</ul>
</nav>

View File

@ -2,13 +2,33 @@
<html> <html>
<head> <head>
<title>Clarion</title> <title>Clarion</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> <%= stylesheet_link_tag 'application' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= stylesheet_link_tag 'http://openfest.org/wp-content/themes/thematic-openfest/style.css' %>
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
</head> </head>
<body> <body>
<div id="wrapper" class="hfeed">
<header id="header">
<div id="branding">
<div id="blog-title">
<span>
<a href="http://openfest.org/" title="OpenFest" rel="home">
<img src="//openfest.org/images/logo-header.png" alt="OpenFest" />
</a>
</span>
</div>
<h1 id="blog-description">да споделим свободата</h1>
</div><!-- #branding -->
<div id="access">
<%= render partial: '/layouts/nav' %>
</div><!-- #access -->
</header>
<div id="main">
<%= yield %> <%= yield %>
</div>
</div>
<%= javascript_include_tag 'application' %>
</body> </body>
</html> </html>