Sha256: 1fed20ccef9a041542c6a3ca8cbc621a5850d0a8e8ca527c48ffeb6940faa1a6

Contents?: true

Size: 1.94 KB

Versions: 2

Compression:

Stored size: 1.94 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"> 
  <title>Rest OAuth 2.0 Server</title>
  <%= stylesheet_link_tag :reset, :template %>
  <%= csrf_meta_tag %>
</head>

<body">
  <div class="container">
      <a class="ribbon" href="https://github.com/lelylan/rest-oauth2-server" target="_blank"><img src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>

      <div class="header">
        <h1>Rest OAuth 2.0 Server</h1>
        <p>
          <b><a href="https://github.com/lelylan/rest-oauth2-server" title="GitHub repository">Rest OAuth 2.0 Server</a> 
            let you open up your API and manage end-user authentication and client application authorization 
            implementing the OAuth 2.0 Specifications (draft 13). Read more on <a href="https://github.com/lelylan/rest-oauth2-server" title="GitHub readme">Github</a>
          </b>
        </p>
      </div>
      <div class="navigation">
        <% if current_user %>
          <div style="float: right">
            Logged in as <%= current_user.email %>.
            <%= link_to "Log out", log_out_path %>
          </div>
          <div>
            <%= link_to("Home", current_user)  %>
            <% if current_user.admin? %> |
              <%= link_to("Users", users_path) %> |
              <%= link_to("OAuth", oauth2_provider_engine.oauth2_provider_root_path) %> |
            <% end %>
          </div>
        <% else %>
          <%= link_to "Sign up", sign_up_path %> or
          <%= link_to "log in", log_in_path %>
        <% end %>
      </div>
      <br/>


    <% if flash.notice %>
      <div class="flash_notice">
        <%= flash.notice %>
      </div>
    <% end %>

    <% if flash.alert %>
      <div class=flash_alert>
        <%= flash.alert %>
        <% if @info %>
          <p>Additional information: 
          <%= @info.to_json%>
          </p>
        <% end %>
      </div>
    <% end %>

    <%= yield %>

  </div>
</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oauth2_provider_engine-0.0.2 test/dummy/app/views/layouts/application.html.erb
oauth2_provider_engine-0.0.1 test/dummy/app/views/layouts/application.html.erb