logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: ca3b364aeaa9014f23b4222a13586f42efb17b93
parent: bf5f55a6bbfee69e41acfcd14002308c69d8b68c
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Thu, 10 Nov 2016 01:19:04 +0100

Fix #122 - Add microformats-2 classes to mention links

Diffstat:

Mapp/lib/formatter.rb2+-
Mapp/views/accounts/show.html.haml2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/lib/formatter.rb b/app/lib/formatter.rb @@ -66,6 +66,6 @@ class Formatter end def mention_html(match, account) - "#{match.split('@').first}<a href=\"#{TagManager.instance.url_for(account)}\" class=\"mention\">@<span>#{account.username}</span></a>" + "#{match.split('@').first}<a href=\"#{TagManager.instance.url_for(account)}\" class=\"h-card u-url p-nickname mention\">@<span>#{account.username}</span></a>" end end diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml @@ -12,6 +12,6 @@ = render partial: 'nothing_here' - else .activity-stream - = render partial: 'stream_entries/status', collection: @statuses, as: :status, cached: true + = render partial: 'stream_entries/status', collection: @statuses, as: :status = will_paginate @statuses, pagination_options