Make user names clickable
This commit is contained in:
parent
0816cf9142
commit
25531bad88
|
@ -202,6 +202,7 @@ class OCSClient {
|
|||
$app['type'] = (string)$tmp[$i]->typeid;
|
||||
$app['typename'] = (string)$tmp[$i]->typename;
|
||||
$app['personid'] = (string)$tmp[$i]->personid;
|
||||
$app['profilepage'] = (string)$tmp[$i]->profilepage;
|
||||
$app['license'] = (string)$tmp[$i]->license;
|
||||
$app['detailpage'] = (string)$tmp[$i]->detailpage;
|
||||
$app['preview'] = (string)$tmp[$i]->smallpreviewpic1;
|
||||
|
@ -274,6 +275,7 @@ class OCSClient {
|
|||
$app['label'] = (string)$tmp->label;
|
||||
$app['typename'] = (string)$tmp->typename;
|
||||
$app['personid'] = (string)$tmp->personid;
|
||||
$app['profilepage'] = (string)$tmp->profilepage;
|
||||
$app['detailpage'] = (string)$tmp->detailpage;
|
||||
$app['preview1'] = (string)$tmp->smallpreviewpic1;
|
||||
$app['preview2'] = (string)$tmp->smallpreviewpic2;
|
||||
|
|
|
@ -62,11 +62,13 @@ script(
|
|||
<div class="app-level">
|
||||
{{{level}}}
|
||||
</div>
|
||||
{{#if profilepage}}<a href="{{profilepage}}" target="_blank" rel="noreferrer">{{/if}}
|
||||
<div class="app-author"><?php p($l->t('by')); ?> {{author}}
|
||||
{{#if licence}}
|
||||
({{licence}}-<?php p($l->t('licensed')); ?>)
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if profilepage}}</a>{{/if}}
|
||||
{{#if score}}
|
||||
<div class="app-score">{{{score}}}</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -517,6 +517,7 @@ class OCSClientTest extends \Test\TestCase {
|
|||
'score' => '60',
|
||||
'downloads' => 5393,
|
||||
'level' => 0,
|
||||
'profilepage' => 'http://opendesktop.org/usermanager/search.php?username=owncloud',
|
||||
],
|
||||
[
|
||||
'id' => '168708',
|
||||
|
@ -535,6 +536,7 @@ class OCSClientTest extends \Test\TestCase {
|
|||
'score' => '58',
|
||||
'downloads' => 4237,
|
||||
'level' => 200,
|
||||
'profilepage' => 'http://opendesktop.org/usermanager/search.php?username=owncloud',
|
||||
],
|
||||
];
|
||||
$this->assertEquals($expected, $this->ocsClient->getApplications([815, 1337], 1, 'approved'));
|
||||
|
@ -760,6 +762,7 @@ class OCSClientTest extends \Test\TestCase {
|
|||
'label' => 'recommended',
|
||||
'typename' => 'ownCloud other',
|
||||
'personid' => 'owncloud',
|
||||
'profilepage' => 'http://opendesktop.org/usermanager/search.php?username=owncloud',
|
||||
'detailpage' => 'https://apps.owncloud.com/content/show.php?content=166053',
|
||||
'preview1' => '',
|
||||
'preview2' => '',
|
||||
|
|
Loading…
Reference in New Issue