Kaynağa Gözat

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

master
Eugen Rochko 7 yıl önce
ebeveyn
işleme
ca3b364aea
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +1
    -1
      app/lib/formatter.rb
  2. +1
    -1
      app/views/accounts/show.html.haml

+ 1
- 1
app/lib/formatter.rb Dosyayı Görüntüle

@@ -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

+ 1
- 1
app/views/accounts/show.html.haml Dosyayı Görüntüle

@@ -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

Yükleniyor…
İptal
Kaydet