Skip to content
Extraits de code Groupes Projets
Valider ec44cff9 rédigé par Eugen Rochko's avatar Eugen Rochko
Parcourir les fichiers

Admin accounts page lists accounts

parent 816284d7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -6,8 +6,10 @@ class Admin::AccountsController < ApplicationController
layout 'public'
def index
@accounts = Account.order('domain ASC, username ASC').paginate(page: params[:page], per_page: 40)
end
def show
@account = Account.find(params[:id])
end
end
%table.table
%thead
%tr
%th Username
%th Domain
%th Subscribed
%tbody
- @accounts.each do |account|
%tr
%td= account.username
%td= account.domain
%th
- if account.local?
Local
- elsif account.subscribed?
%i.fa.fa-check
- else
%i.fa.fa-times
= will_paginate @accounts, pagination_options
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter