app/views/index_page/topic_as_full_page.html.haml
.full-width.notabs#content-wrapper
= render "basket_navigation_menu" if show_basket_list_naviation_menu?
#main-content-wrapper
#main-content-container
%a{ name: "main-content" }
= @topic.description.html_safe
= pending_review(@topic)
- extended_fields_html = display_xml_attributes(@topic)
- if !extended_fields_html.blank?
#detail-extended
%h4#detail-extended-heading= h(@topic.title)
%br/
= extended_fields_html
.license= @topic.license_metadata
%div{ style: "clear:both;" }
- links = link_to_membership_request_of(@current_basket).html_safe
- links += link_to_members_of(@current_basket)
- if @current_basket.allows_contact_with_inheritance? || !links.blank? || logged_in? && (permitted_to_edit_current_item? || (@current_basket.show_privacy_controls_with_inheritance? && permitted_to_view_private_items?))
#moderator-tools
%ul
- if permitted_to_edit_basket_homepage_topic?
%li.first
= link_to t('index_page.topic_as_full_page.edit'), action: 'edit',
urlified_name: @topic.basket.urlified_name,
controller: 'topics',
id: @topic,
private: params[:private]
%li
= link_to t('index_page.topic_as_full_page.history'), action: 'history',
urlified_name: @topic.basket.urlified_name,
controller: 'topics',
id: @topic,
private: params[:private]
- if @current_basket.show_privacy_controls_with_inheritance? && permitted_to_view_private_items?
= render partial: 'topics/privacy_chooser', locals: { item: @topic }
- if @current_basket.allows_contact_with_inheritance?
%ul
%li= link_to_basket_contact_for(@current_basket)
= links unless links.blank?
%div{ style: "clear:both;" }