Sha256: fefb36718aa4a9bcad7f77d30f363678d5679223ee5e6efefe6a2211ccb21e8f
Contents?: true
Size: 989 Bytes
Versions: 1
Compression:
Stored size: 989 Bytes
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.actor.present? %> <li><%= link_to "You (#{user.actor.username})", federails.client_actor_path(user.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.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.3.0 | app/views/federails/client/common/_client_links.html.erb |