]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Somewhat better layout for approving/rejecting subrequests
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 3 Jan 2016 19:42:21 +0000 (20:42 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 3 Jan 2016 19:42:21 +0000 (20:42 +0100)
lib/approvesubform.php
theme/base/css/display.css

index 820f648d0fa728e2a37c26c52d53628d184386f9..c034effc0033bbe2443d7fd5b1adcb1d37b1804e 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * StatusNet, the distributed open-source microblogging tool
  *
- * Form for leaving a group
+ * Form for approving or reject a pending subscription request
  *
  * PHP version 5
  *
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) {
-    exit(1);
-}
-
-require_once INSTALLDIR.'/lib/form.php';
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 /**
- * Form for leaving a group
+ * Form for approving or reject a pending subscription request
  *
  * @category Form
  * @package  StatusNet
@@ -107,8 +103,8 @@ class ApproveSubForm extends Form
     function formActions()
     {
         // TRANS: Submit button text to accept a subscription request on approve sub form.
-        $this->out->submit('approve', _m('BUTTON','Accept'));
+        $this->out->submit($this->id().'-approve', _m('BUTTON','Accept'), 'submit approve', 'approve');
         // TRANS: Submit button text to reject a subscription request on approve sub form.
-        $this->out->submit('cancel', _m('BUTTON','Reject'));
+        $this->out->submit($this->id().'-cancel', _m('BUTTON','Reject'), 'submit cancel', 'cancel');
     }
 }
index 2169bd4b3e689dcad340247623111ddc54ef165a..234bd9c9130b5519435e7542138b813b54eb6f24 100644 (file)
@@ -1711,7 +1711,7 @@ display:block;
     padding: 4px 4px 4px 26px;
 }
 
-.entity_actions a, .entity_actions p, .entity_actions .entity_subscribe input, .entity_actions .entity_block input, .entity_actions .entity_moderation input, .entity_actions .entity_role input, .entity_actions .entity_nudge input, .entity_actions .entity_delete input, .entity_actions input.submit {
+.entity_actions a, .entity_actions p, .entity_actions .entity_approval input, .entity_actions .entity_subscribe input, .entity_actions .entity_block input, .entity_actions .entity_moderation input, .entity_actions .entity_role input, .entity_actions .entity_nudge input, .entity_actions .entity_delete input, .entity_actions input.submit {
     background-color: #ccc !important;
     border: none;
 }
@@ -1720,7 +1720,7 @@ display:block;
     padding: 2px 4px 4px 28px;
 }
 
-.entity_actions a:hover, .entity_actions p:hover, .entity_actions .entity_subscribe input:hover, .entity_actions .entity_block input:hover, .entity_actions .entity_moderation input:hover, .entity_actions .entity_role input:hover, .entity_actions .entity_nudge input:hover, .entity_actions .entity_delete input:hover, .entity_actions input.submit:hover {
+.entity_actions a:hover, .entity_actions p:hover, .entity_actions, .entity_subscribe input:hover, .entity_actions .entity_subscribe input:hover, .entity_actions .entity_block input:hover, .entity_actions .entity_moderation input:hover, .entity_actions .entity_role input:hover, .entity_actions .entity_nudge input:hover, .entity_actions .entity_delete input:hover, .entity_actions input.submit:hover {
     background-color: #f2f2f2 !important;
 }
 
@@ -2256,6 +2256,7 @@ button.minimize,
 .entity_clear input.submit,
 .entity_flag input.submit,
 .entity_flag p,
+.entity_approval input.submit,
 .entity_subscribe input.submit,
 #realtime_play,
 #realtime_pause,
@@ -2377,9 +2378,11 @@ background-position: 5px -2039px;
 .entity_flag p {
 background-position: 5px -2105px;
 }
+.entity_approval input.approve,
 .entity_subscribe input.accept {
 background-position: 5px -2171px;
 }
+.entity_approval input.cancel,
 .entity_subscribe input.reject {
 background-position: 5px -2237px;
 }