]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/utils.ts
Add user update for admins
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / utils.ts
CommitLineData
df98563e 1import { DatePipe } from '@angular/common'
28798b5d
C
2
3export class Utils {
4
df98563e
C
5 static dateToHuman (date: String) {
6 return new DatePipe('en').transform(date, 'medium')
28798b5d
C
7 }
8
df98563e
C
9 static getRowDeleteButton () {
10 return '<span class="glyphicon glyphicon-remove glyphicon-black"></span>'
28798b5d 11 }
8094a898
C
12
13 static getRowEditButton () {
14 return '<span class="glyphicon glyphicon-pencil glyphicon-black"></span>'
15 }
28798b5d 16}