MitinPavel/current_user

View on GitHub
app/views/current_user/sessions/new.html.erb

Summary

Maintainability
Test Coverage
<%= render :partial => 'header' %>

<% if @users.any? %>
    <%= render :partial => 'user', :collection => @users %>
<% else %>
    <%= render 'add_users_message' %>
 <% end %>

<!--CSS-->

<style type="text/css">
  /* Grabbed from here: http://www.456bereastreet.com/archive/201110/styling_button_elements_to_look_like_links/ */
  .current_user_signin_button {
      overflow:visible; /* Shrinkwrap the text in IE7- */
      margin:0;
      padding:0;
      border:0;
      background:transparent;
      font:inherit; /* Inherit font settings (doesn’t work in IE7-) */
      line-height:normal; /* Override line-height to avoid spacing issues */
      text-decoration:underline; /* Make it look linky */
      cursor:pointer; /* Buttons don’t make the cursor change in all browsers */
      -moz-user-select:text; /* Make button text selectable in Gecko */
  }
  /* Make sure keyboard users get visual feedback */
  .current_user_signin_button:hover,
  .current_user_signin_button:focus {
      color:#800000;
      background-color:#e3e0d1;
  }
  /* Remove mystery padding in Gecko browsers.
   * See https://bugzilla.mozilla.org/show_bug.cgi?id=140562
   */
  .current_user_signin_button::-moz-focus-inner {
      padding:0;
      border:0;
  }
</style>