Open sneridagh opened 9 years ago
@martior if you happen to read this we need your help here or any @plone/ai-team that can install this plugin (or equivalent): https://github.com/tcreativo/plugin_discourse_statistics
I can probably do that.
On Fri, Feb 12, 2016 at 2:11 PM Gil Forcada Codinachs < notifications@github.com> wrote:
@martior https://github.com/martior if you happen to read this we need your help here or any @plone/ai-team https://github.com/orgs/plone/teams/ai-team that can install this plugin (or equivalent): https://github.com/tcreativo/plugin_discourse_statistics
— Reply to this email directly or view it on GitHub https://github.com/plone/ploneorg.core/issues/34#issuecomment-183507193.
@fulv that's great news! Once it's installed let me know and I will work on the stats retriever
@fulv assign it back to me once the plugin is installed so I can test it
Ok, I'm back from a particularly insistent cold. The plugin seem not to be compatible with the current discourse, it gives a fun template/js compile error on install.
rake aborted!
Barber::PrecompilerError: Pre compilation failed for: <div class='admin-controls'>
<div class='span15'>
<ul class="nav nav-pills">
<li>{{#link-to 'adminUsersList.active'}}{{i18n admin.users.nav.active}}{{/link-to}}</li>
<li>{{#link-to 'adminUsersList.new'}}{{i18n admin.users.nav.new}}{{/link-to}}</li>
{{#if mustApproveUsers}}
<li>{{#link-to 'adminUsersList.pending'}}{{i18n admin.users.nav.pending}}{{/link-to}}</li>
{{/if}}
<li>{{#link-to 'adminUsersList.admins'}}{{i18n admin.users.nav.admins}}{{/link-to}}</li>
<li>{{#link-to 'adminUsersList.moderators'}}{{i18n admin.users.nav.moderators}}{{/link-to}}</li>
<li>{{#link-to 'adminUsersList.suspended'}}{{i18n admin.users.nav.suspended}}{{/link-to}}</li>
<li>{{#link-to 'adminUsersList.blocked'}}{{i18n admin.users.nav.blocked}}{{/link-to}}</li>
</ul>
</div>
<div class='username controls'>
{{text-field value=username placeholderKey="search_hint"}}
</div>
<div class="pull-right">
<button {{action exportUsers}} class="btn" title="{{i18n admin.export_csv.users.title}}"><i class="fa fa-download"></i>{{i18n admin.export_csv.users.text}}</button>
</div>
<div class="pull-right">
<button {{action exportExtendedUsers}} class="btn" title="{{i18n admin.export_csv.users.title}}"><i class="fa fa-download"></i> Export Users Extended </button>
</div>
</div>
<div class="admin-container">
{{#if hasSelection}}
<div id='selected-controls'>
<button {{action approveUsers}} class='btn'>{{countI18n admin.users.approved_selected countBinding="selectedCount"}}</button>
<button {{action rejectUsers}} class='btn btn-danger'>{{countI18n admin.users.reject_selected countBinding="selectedCount"}}</button>
</div>
{{/if}}
<h2>{{title}}</h2>
<br/>
{{#if loading}}
<div class='admin-loading'>{{i18n loading}}</div>
{{else}}
{{#if model.length}}
<table class='table'>
<tr>
{{#if showApproval}}
<th>{{view Ember.Checkbox checkedBinding="selectAll"}}</th>
{{/if}}
<th> </th>
<th>{{i18n username}}</th>
<th>{{i18n admin.users.last_emailed}}</th>
<th>{{i18n last_seen}}</th>
<th>{{i18n admin.user.topics_entered}}</th>
<th>{{i18n admin.user.posts_read_count}}</th>
<th>{{i18n admin.user.time_read}}</th>
<th>{{i18n created}}</th>
{{#if showApproval}}
<th>{{i18n admin.users.approved}}</th>
{{/if}}
<th> </th>
</tr>
{{#each model}}
<tr {{bind-attr class="selected active::not-activated"}}>
{{#if controller.showApproval}}
<td>
{{#if can_approve}}
{{view Ember.Checkbox checkedBinding="selected"}}
{{/if}}
</td>
{{/if}}
<td>{{#link-to 'adminUser' this}}{{avatar this imageSize="small"}}{{/link-to}}</td>
<td>{{#link-to 'adminUser' this}}{{unbound username}}{{/link-to}}</td>
<td>{{{unbound last_emailed_age}}}</td>
<td>{{{unbound last_seen_age}}}</td>
<td>{{{unbound topics_entered}}}</td>
<td>{{{unbound posts_read_count}}}</td>
<td>{{{unbound time_read}}}</td>
<td>{{{unbound created_at_age}}}</td>
{{#if showApproval}}
<td>
{{#if approved}}
{{i18n yes_value}}
{{else}}
{{i18n no_value}}
{{/if}}
</td>
{{/if}}
<td>
{{#if admin}}<i class="fa fa-shield" title="{{i18n admin.title}}"></i>{{/if}}
{{#if moderator}}<i class="fa fa-shield" title="{{i18n admin.moderator}}"></i>{{/if}}
<td>
</tr>
{{/each}}
</table>
{{else}}
<p>{{i18n search.no_results}}</p>
{{/if}}
{{/if}}
</div>
. Compiler said: Error: Closing tag `tr` (on line 93) did not match last open tag `td` (on line 92).
(in /var/www/discourse/plugins/plugin_discourse_statistics/assets/javascripts/admin/templates/users_list.js.handlebars)/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/barber-0.9.0/lib/barber/precompiler.rb:25:in `rescue in compile'
hint https://community.plone.org/about.json