/* Rules for message in/out box page */
+.message #content {
+ max-width: 740px;
+}
+
.messages {
width: 100%;
border: 1px solid #ddd;
display: block;
padding: $lineheight/4;
min-width: 120px;
- margin-bottom: $lineheight/2;
+ margin: 0 0 $lineheight/2 0;
color: white;
background: $blue;
text-align: center;
}
}
+.buttons {
+ min-width: 200px;
+
+ input[type="submit"],
+ .button {
+ box-sizing: border-box;
+ display: inline-block;
+ margin-bottom:0;
+ width:50%;
+ min-width: 0;
+ }
+ input:first-child,
+ .button:first-child {
+ border-radius:2px 0 0 2px;
+ border-right:1px solid white;
+ }
+ input:last-child,
+ .button:first-child {
+ border-radius:0 2px 2px 0;
+ }
+}
+
/* Rules for doing distinct colour of alternate table rows */
.table0,
margin-bottom: $lineheight/4;
white-space: nowrap;
}
-
- input.richtext_doedit,
- input.richtext_dopreview {
- margin-right: $lineheight/2;
- }
- }
-
- .buttons input[type="submit"] {
- display: inline-block;
- margin-bottom:0;
- width:99px;
- min-width:99px;
- }
- .buttons input:first-child {
- border-radius:2px 0 0 2px;
- margin-right:1px;
- }
- .buttons input:last-child {
- border-radius:0 2px 2px 0;
}
}
<%= link_to h(@message.sender.display_name), :controller => 'user', :action => 'view', :display_name => @message.sender.display_name %></td>
<div class='right'>
<%= l @message.sent_on, :format => :friendly %>
+ <div class='buttons-joined'>
<%= button_to t('message.read.reply_button'), :controller => 'message', :action => 'reply', :message_id => @message.id %>
<%= button_to t('message.read.unread_button'), :controller => 'message', :action => 'mark', :message_id => @message.id, :mark => 'unread' %>
</div>
+ </div>
</div>
<div class="richtext"><%= @message.body.to_html %></div>