diff options
author | Yorhel <git@yorhel.nl> | 2019-09-14 13:08:40 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-14 13:08:40 +0200 |
commit | 9f36d1f2f82bc2be344db122a444ef7e89f3e055 (patch) | |
tree | a02bd085fdb9cc45f7d5c8a24745eecc2fa7f9c6 /lib/VNDB/Util | |
parent | 6b1aaf73d0459c0e742602944b9dd2346460cf81 (diff) |
Add "msg user" to revision box + add own ID to boards when PMing
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 5e9b4a47..12dee979 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -223,7 +223,11 @@ sub revheader { # type, obj my($self, $type, $obj) = @_; b "Revision $obj->{rev}"; txt ' ('; - a href => "/$type$obj->{id}.$obj->{rev}/edit", 'edit'; + a href => "/$type$obj->{id}.$obj->{rev}/edit", 'revert to'; + if($obj->{requester} && $self->authCan('board')) { + lit ' / '; + a href => "/t/u$obj->{requester}/new?title=Regarding%20$type$obj->{id}.$obj->{rev}", 'msg user'; + } txt ')'; br; txt 'By '; |