Sha256: cca11824ed4759a104be6ddd21cb104d19a0aef6d64a4714be6db382dc598972
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
Federation: <ul> <%# Available publicly %> <li><%= link_to 'Actors', federails.client_actors_url %></li> <li><%= link_to 'Activities', federails.client_activities_url %></li> <%# Available when user has an associated actor %> <% if Federails::Client::ActivityPolicy.new(user, nil).feed? %> <li><%= link_to 'Feed', federails.client_feed_url %></li> <%end %> <%# Available when user has an associated actor. The actor must exist to create the link %> <% if Federails.actor_entity?(user) && user.federails_actor.present? %> <li><%= link_to "You (#{user.federails_actor.username})", federails.client_actor_path(user.federails_actor) %></li> <% end %> </ul> <%# Debug information%> <% if !Federails::actor_entity?(user) %> <p><%= user.class.name %> is not configured to have an associated actor; you won't be allowed to follow or be followed</p> <% elsif !user.federails_actor.present? %> <p>Your account does not have an associated actor; you won't be allowed to follow or be followed</p> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
federails-0.4.0 | app/views/federails/client/common/_client_links.html.erb |