diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-07-10 22:01:27 +0000 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-07-10 22:01:46 +0000 |
commit | 601ee04b6019f4ef652f2f53d74429be11fa0bb0 (patch) | |
tree | 00cae578f8b34e2324c1e2538a319070bbcd73f7 | |
parent | Fix some stylesheets due to Bootstrap 4 (diff) | |
download | frontend-601ee04b6019f4ef652f2f53d74429be11fa0bb0.tar.gz frontend-601ee04b6019f4ef652f2f53d74429be11fa0bb0.tar.bz2 frontend-601ee04b6019f4ef652f2f53d74429be11fa0bb0.zip |
Add line numbers to the message body
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r-- | public/css/main.css | 7 | ||||
-rw-r--r-- | views/message.erb | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/public/css/main.css b/public/css/main.css index d5e0f31..9c41be6 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -97,4 +97,11 @@ } .ag-date { +} + +.ag-line-number{ + color: #c1c1c1!important; +} +.ag-line-number:hover { + color: #54487A!important; }
\ No newline at end of file diff --git a/views/message.erb b/views/message.erb index c7c98c3..5e2537d 100644 --- a/views/message.erb +++ b/views/message.erb @@ -37,9 +37,7 @@ </table> </div> -<pre class="ag-message-content"> -<%= linkize(strip_email(message['_source']['content'])) %> -</pre> +<pre class="ag-message-content"><div class="d-flex flex-row"><div class="text-right pr-3"><% strip_email(message['_source']['content']).split("\n").each_with_index do |line, index| %><a id="L<%= index + 1 %>" class="ag-line-number" href="#L<%= index + 1 %>"><%= index + 1 %></a><br/><% end %></div><div><%= linkize(strip_email(message['_source']['content'])) %></div></div></pre> <% if message['_source']['attachments'] and not message['_source']['attachments'].empty? %> <h3>Attachments</h3> |