summaryrefslogtreecommitdiff
path: root/lib/applicationlist.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-11-16 16:58:49 -0800
committerZach Copley <zach@status.net>2010-01-14 02:41:04 +0000
commitdad67b030f395816db4ba32cef56e848aea93f96 (patch)
tree006b6a06b9485456713d57181e1fe7aefc1809c1 /lib/applicationlist.php
parent8e0499a233292a1df9526efc48e252ea56eedeac (diff)
Workflow for registering new OAuth apps pretty much done.
Diffstat (limited to 'lib/applicationlist.php')
-rw-r--r--lib/applicationlist.php46
1 files changed, 37 insertions, 9 deletions
diff --git a/lib/applicationlist.php b/lib/applicationlist.php
index fed784bb6..3141ea974 100644
--- a/lib/applicationlist.php
+++ b/lib/applicationlist.php
@@ -20,7 +20,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- * @category Public
+ * @category Application
* @package StatusNet
* @author Zach Copley <zach@status.net>
* @copyright 2008-2009 StatusNet, Inc.
@@ -39,7 +39,7 @@ define('APPS_PER_PAGE', 20);
/**
* Widget to show a list of OAuth applications
*
- * @category Public
+ * @category Application
* @package StatusNet
* @author Zach Copley <zach@status.net>
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
@@ -50,10 +50,10 @@ class ApplicationList extends Widget
{
/** Current application, application query */
var $application = null;
-
+
/** Owner of this list */
var $owner = null;
-
+
/** Action object using us. */
var $action = null;
@@ -87,14 +87,42 @@ class ApplicationList extends Widget
function showApplication()
{
- $this->out->elementStart('li', array('class' => 'application',
- 'id' => 'oauthclient-' . $this->application->id));
$user = common_current_user();
- $this->out->raw($this->application->name);
-
- $this->out->elementEnd('li');
+ $this->out->elementStart('li', array('class' => 'application',
+ 'id' => 'oauthclient-' . $this->application->id));
+
+ $this->out->elementStart('a',
+ array('href' => common_local_url(
+ 'showapplication',
+ array(
+ 'nickname' => $user->nickname,
+ 'id' => $this->application->id
+ )
+ ),
+ 'class' => 'url')
+ );
+
+ $this->out->raw($this->application->name);
+ $this->out->elementEnd('a');
+
+ $this->out->raw(' by ');
+
+ $this->out->elementStart('a',
+ array(
+ 'href' => $this->application->homepage,
+ 'class' => 'url'
+ )
+ );
+ $this->out->raw($this->application->organization);
+ $this->out->elementEnd('a');
+
+ $this->out->elementStart('p', 'note');
+ $this->out->raw($this->application->description);
+ $this->out->elementEnd('p');
+
+ $this->out->elementEnd('li');
}
/* Override this in subclasses. */