mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge branch 'master' of https://github.com/discourse/discourse
This commit is contained in:
commit
15cb1bd094
4 changed files with 5 additions and 2 deletions
|
@ -54,7 +54,7 @@
|
|||
</thead>
|
||||
<tbody>
|
||||
{{#unless loading}}
|
||||
{{admin-report-per-day-counts report=visits}}
|
||||
{{admin-report-counts report=visits}}
|
||||
{{admin-report-counts report=signups}}
|
||||
{{admin-report-counts report=topics}}
|
||||
{{admin-report-counts report=posts}}
|
||||
|
|
|
@ -9,7 +9,7 @@ const Topic = RestModel.extend({
|
|||
let title = this.get("fancy_title");
|
||||
|
||||
if (Discourse.SiteSettings.enable_emoji && title.indexOf(":") >= 0) {
|
||||
title = title.replace(/:\S+:?/, function(m) {
|
||||
title = title.replace(/:\S+:?/g, function(m) {
|
||||
const emoji = Discourse.Emoji.translations[m] ? Discourse.Emoji.translations[m] : m.slice(1, m.length - 1),
|
||||
url = Discourse.Emoji.urlFor(emoji);
|
||||
return url ? "<img src='" + url + "' title='" + emoji + "' alt='" + emoji + "' class='emoji'>" : m;
|
||||
|
|
|
@ -27,11 +27,13 @@ class About
|
|||
def moderators
|
||||
@moderators ||= User.where(moderator: true, admin: false)
|
||||
.where.not(id: Discourse::SYSTEM_USER_ID)
|
||||
.order(:username_lower)
|
||||
end
|
||||
|
||||
def admins
|
||||
@admins ||= User.where(admin: true)
|
||||
.where.not(id: Discourse::SYSTEM_USER_ID)
|
||||
.order(:username_lower)
|
||||
end
|
||||
|
||||
def stats
|
||||
|
|
|
@ -76,6 +76,7 @@ class Report
|
|||
|
||||
def self.report_visits(report)
|
||||
basic_report_about report, UserVisit, :by_day, report.start_date, report.end_date
|
||||
add_counts report, UserVisit, 'visited_at'
|
||||
end
|
||||
|
||||
def self.report_signups(report)
|
||||
|
|
Loading…
Reference in a new issue