discourse/app/views/published_pages/show.html.erb
Vinoth Kannan 6b818fb855 FIX: use normal logo in published pages if small not available.
It was returning an error if small logo is not available. If both logos are not available then it will be hidden now.
2020-09-21 09:20:39 +05:30

29 lines
990 B
Plaintext

<%= discourse_color_scheme_stylesheets() %>
<div class="published-page-header">
<div class="published-page-header-wrapper">
<%- if @logo.present? %>
<a href="<%= @site_url %>">
<img class="published-page-logo" src="<%=@logo.url%>"/>
</a>
<%- end -%>
<h1 class="published-page-title"><%= @topic.title %></h1>
</div>
</div>
<div class="published-page-content-wrapper">
<div class="published-page-content-header">
<div class="published-page-author">
<img class="avatar" src="<%= @topic.user.avatar_template.gsub('{size}', '90') %>">
<div class="published-page-author-details">
<div class="username"><%= @topic.user.username %></div>
<div class="topic-created-at"><%= short_date(@topic.created_at) %></div>
</div>
</div>
</div>
<%- if @topic.first_post.present? %>
<div class="published-page-content-body">
<%= @topic.first_post.cooked.html_safe %>
</div>
<%- end -%>
</div>