<% scited = @scited.nil? ? (signed_in? && @scited_ids.include?(paper.id)) : @scited %>

<div class="scite-toggle <%= scited ? 'active' : '' %>" data-paper-uid="<%= paper.uid %>" >
  <div class="scited">
    <button class="btn unscite btn-success">Scited</button>
    <div class="scites-count">
      <a href="<%= paper_scites_path(paper) %>"><button class="btn btn-default count"><%= paper.scites_count + (scited ? 0 : 1)%></button></a>
    </div>
  </div>

  <div class="unscited">
    <button class="btn btn-default scite">Scite!</button>
    <div class="scites-count">
      <button class="btn btn-default count"><%= paper.scites_count - (scited ? 1 : 0) %></button>
    </div>
  </div>
</div>

<% scited = @scited.nil? ? (signed_in? && @scited_ids.include?(paper.id)) : @scited %>

<div class="scite-toggle <%= scited ? 'active' : '' %>" data-paper-uid="<%= paper.uid %>" >
  <div class="scited">
    <button class="btn unscite btn-success">Scited</button>
    <div class="scites-count">
      <a href="<%= paper_scites_path(paper) %>"><button class="btn btn-default count"><%= paper.scites_count + (scited ? 0 : 1)%></button></a>
    </div>
  </div>

  <div class="unscited">
    <button class="btn btn-default scite">Scite!</button>
    <div class="scites-count">
      <a href="<%= paper_scites_path(paper) %>"><button class="btn btn-default count"><%= paper.scites_count - (scited ? 1 : 0)%></button></a>
    </div>
  </div>
</div>

Fix scites button link when unscited
Fix scites button link when unscited
