|
|
@ -1,4 +1,4 @@
|
|
|
|
<%= board_breadcrumb(@message) %>
|
|
|
|
<!-- <%= board_breadcrumb(@message) %>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="contextual">
|
|
|
|
<div class="contextual">
|
|
|
|
<%= watcher_link(@topic, User.current) %>
|
|
|
|
<%= watcher_link(@topic, User.current) %>
|
|
|
@ -21,19 +21,87 @@
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
:data => {:confirm => l(:text_are_you_sure)},
|
|
|
|
:class => 'icon icon-del'
|
|
|
|
:class => 'icon icon-del'
|
|
|
|
) if @message.destroyable_by?(User.current) %>
|
|
|
|
) if @message.destroyable_by?(User.current) %>
|
|
|
|
</div>
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
|
|
<div class="borad-title"><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></div>
|
|
|
|
<!-- <div class="borad-title"><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="borad-topic-count-message">
|
|
|
|
<div class="borad-topic-count-message">
|
|
|
|
<%= textilizable(@topic, :content) %>
|
|
|
|
<%= textilizable(@topic, :content) %>
|
|
|
|
<%= authoring @topic.created_on, @topic.author %>
|
|
|
|
<%= authoring @topic.created_on, @topic.author %>
|
|
|
|
<%= link_to_attachments @topic, :author => false %>
|
|
|
|
<%= link_to_attachments @topic, :author => false %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br /> -->
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
/** {
|
|
|
|
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
|
|
|
|
-box-sizing: border-box;
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
.lz {
|
|
|
|
|
|
|
|
position:relative;
|
|
|
|
|
|
|
|
min-height: 200px;
|
|
|
|
|
|
|
|
margin: 10px 2px;
|
|
|
|
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
|
|
box-shadow: 1px 1px 6px #97EBF4;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.lz-left{
|
|
|
|
|
|
|
|
float: left;
|
|
|
|
|
|
|
|
margin: 2%;
|
|
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.memo-section{
|
|
|
|
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
margin-left: 15%;
|
|
|
|
|
|
|
|
padding-top: 1%;
|
|
|
|
|
|
|
|
border-left: 2px dotted #EEE;/*#8BE9F3;*/
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.memo-title{
|
|
|
|
|
|
|
|
margin: 1em 0;
|
|
|
|
|
|
|
|
padding-left: 1%;
|
|
|
|
|
|
|
|
border-bottom: 1px dashed
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.memo-content{
|
|
|
|
|
|
|
|
padding: 1%;
|
|
|
|
|
|
|
|
margin: 1%;
|
|
|
|
|
|
|
|
margin-bottom: 40px;
|
|
|
|
|
|
|
|
background-color: #F6F6F6;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.memo-timestamp{
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
bottom: 0px;
|
|
|
|
|
|
|
|
right: 0;
|
|
|
|
|
|
|
|
margin: 20px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.replies{
|
|
|
|
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
/*max-width: 90%;*/
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.reply-box{
|
|
|
|
|
|
|
|
float: right;
|
|
|
|
|
|
|
|
width: 640px;
|
|
|
|
|
|
|
|
padding: 3%;
|
|
|
|
|
|
|
|
/*border: 2px solid #C6F3F9;*/
|
|
|
|
|
|
|
|
border-top: 2px double #C6F3F9;
|
|
|
|
|
|
|
|
/*border-radius: 10px;*/
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="lz">
|
|
|
|
|
|
|
|
<div class="lz-left">
|
|
|
|
|
|
|
|
<div class=""><%= link_to image_tag(url_to_avatar(@topic.author), :class => "avatar"), user_path(@topic.author) %></div>
|
|
|
|
|
|
|
|
<p class=""><%=h @topic.author %></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="memo-section">
|
|
|
|
|
|
|
|
<div class="memo-title"><%= label_tag l(:field_subject) %>: <%=h @topic.subject %></div>
|
|
|
|
|
|
|
|
<div class="memo-content"><%= textilizable(@topic, :content) %></div>
|
|
|
|
|
|
|
|
<div class="memo-timestamp"> <%= authoring @topic.created_on, @topic.author %></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<% unless @replies.empty? %>
|
|
|
|
<% unless @replies.empty? %>
|
|
|
|
<h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
|
|
|
|
<h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
|
|
|
|
|
|
|
|
<% reply_count = 0 %>
|
|
|
|
<% @replies.each do |message| %>
|
|
|
|
<% @replies.each do |message| %>
|
|
|
|
<div class="message reply" id="<%= "message-#{message.id}" %>">
|
|
|
|
<div class="message reply" id="<%= "message-#{message.id}" %>">
|
|
|
|
<div class="contextual-borad">
|
|
|
|
<div class="contextual-borad">
|
|
|
@ -58,14 +126,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<table class="borad-text-list">
|
|
|
|
<table class="borad-text-list">
|
|
|
|
|
|
|
|
<tr><td class="font_lighter"><%= reply_count += 1 %>楼 </td></tr>
|
|
|
|
<tr><td rowspan="3" valign="top" width="60px"><%= link_to image_tag(url_to_avatar(message.author), :class => "avatar"), user_path(message.author) %></td>
|
|
|
|
<tr><td rowspan="3" valign="top" width="60px"><%= link_to image_tag(url_to_avatar(message.author), :class => "avatar"), user_path(message.author) %></td>
|
|
|
|
<td class="comments"><div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
|
|
|
|
<td class="comments"><div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
|
|
|
|
<%= link_to_attachments message, :author => false %>
|
|
|
|
<%= link_to_attachments message, :author => false %>
|
|
|
|
</div> </td></tr>
|
|
|
|
</td></tr>
|
|
|
|
<tr><td><%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %></td></tr>
|
|
|
|
<tr><td class="font_lighter" style="float: right"><%= authoring message.created_on, message.author %></td></tr>
|
|
|
|
<tr><td class="font_lighter"><%= authoring message.created_on, message.author %></td></tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- <h4>
|
|
|
|
<!-- <h4>
|
|
|
|
<%= avatar(message.author, :size => "24") %>
|
|
|
|
<%= avatar(message.author, :size => "24") %>
|
|
|
|
<%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
|
|
|
|
<%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
|
|
|
@ -74,7 +142,7 @@
|
|
|
|
</h4>
|
|
|
|
</h4>
|
|
|
|
<div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
|
|
|
|
<div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
|
|
|
|
<%= link_to_attachments message, :author => false %> -->
|
|
|
|
<%= link_to_attachments message, :author => false %> -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<div class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></div>
|
|
|
|
<div class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|