Sha256: 48f543b7c3bce01159b537aaba390b1914e3edcb4ec982bbd7864282e9076e7c

Contents?: true

Size: 1019 Bytes

Versions: 3

Compression:

Stored size: 1019 Bytes

Contents

<!DOCTYPE html>
<html>
<head>
  <title>Rostra</title>
  <%= stylesheet_link_tag "rostra/application" %>
  <%= javascript_include_tag "rostra/application" %>
  <%= csrf_meta_tags %>
</head>
<body id="<%= controller_name %>" class="<%= action_name %>">
  <div id="page_wrap">
    <nav>
      <%= link_to 'Recent questions', questions_path %>
    </nav>
    <% flash.each do |name, msg| %>
      <%= content_tag :div, msg, id: "flash_#{name}", class: 'flash' %>
    <% end %>

    <h1><%=
      case "#{controller_name}##{action_name}"
      when "questions#show" then @question.title
      when "questions#index" then
        if params[:tag_search].present?
          "Recent Questions for tag #{params[:tag_search]}"
        else
          "Recent Questions"
        end
      when "questions#new" then "Post a new question"
      when "questions#edit" then "Editing question"
      when "answers#edit" then "Editing answer"
      else "Recent Questions"
      end
    %></h1>

    <%= yield %>
  </div>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rostra-0.0.10 app/views/layouts/rostra/application.html.erb
rostra-0.0.9 app/views/layouts/rostra/application.html.erb
rostra-0.0.8 app/views/layouts/rostra/application.html.erb