Skip to content
This repository
tree: aa571de92e
Fetching contributors…

Cannot retrieve contributors at this time

file 54 lines (53 sloc) 1.852 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
<%= css_url("/css/user_settings.css") %>
<%= js_bundle(:user_settings_app_js) %>

<div id="settings" class="copy">
  <div class="column">
    <h2>User profile</h2>
    <table>
      <tr>
        <td>Name</td>
        <td>
          <span id="editDisplayName" class="editable west" rel="tipsy" title="Edit">
            <%= current_user.name %>
          </span>
        </td>
      </tr>
      <tr><td>Email</td><td><%= current_user.email %></td></tr>
      <tr>
        <td>Gravatar</td>
        <td>
          <a class="gravatarLink" href="https://en.gravatar.com/site/login" target="_blank">
            <img class="bigGravatar west" rel="tipsy" title="Change your gravatar" src="<%= current_user.gravatar %>" />
          </a>
        </td>
      </tr>
    </table>
  </div>
  <div class="column">
    <h2>Commit preferences</h2>
    <div class="preference">
      <% line_length = (current_user.line_length || 110).to_s %>
      Line length indicator bar: <span id="lineLength" class="value"><%= line_length %> characters</span>
      <div id="lineLengthSlider" data-value="<%= line_length %>" ></div>
    </div>
    <div class="preference">
      <span class="preference">Default diff view:</span>
      <% default_to_side_by_side = current_user.default_to_side_by_side %>
      <input type="radio" name="diffView" value="false"
        <%= "checked" unless default_to_side_by_side %>> unified</input>
      <input type="radio" name="diffView" value="true"
        <%= "checked" if default_to_side_by_side %>> side-by-side</input>
    </div>
    <h2>API credentials</h2>
    <table>
      <tr>
        <td>Key</td>
        <td><span class="key"><%= current_user.api_key %></span></td>
      </tr>
      <tr>
        <td>Secret</td>
        <td><span class="key"><%= current_user.api_secret %></span></td>
      </tr>
    </table>
  </div>
</div>
Something went wrong with that request. Please try again.