-
- <% if @user and diary_entry.subscribers.exists?(@user.id) %>
- <li><%= link_to t('javascripts.changesets.show.unsubscribe'), diary_entry_unsubscribe_url(diary_entry), :method => :post %></li>
- <% elsif @user %>
- <li><%= link_to t('javascripts.changesets.show.subscribe'), diary_entry_subscribe_url(diary_entry), :method => :post %></li>
- <% end %>
-