Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit b821221

Browse files
committed
Remove repository sync tabs from zfc-user/user/index.phtml
1 parent 4f9644a commit b821221

File tree

1 file changed

+36
-62
lines changed

1 file changed

+36
-62
lines changed
Lines changed: 36 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,43 @@
1-
<div class="row">
2-
<div class="span8">
3-
<div class="row-fluid">
4-
<div class="span12">
5-
<div class="navbar">
6-
<div class="navbar-inner">
7-
<h1 class="zf-green">Available Modules</h1>
8-
<p>Select which module you want to Submit for Listing</p>
9-
</div>
10-
</div>
11-
</div>
12-
</div>
13-
<?php foreach ($this->flashMessenger()->getMessages() as $message): ?>
14-
<h3 class="zf-green"><?php echo $message ?></h3>
15-
<?php endforeach; ?>
161

17-
<ul class="nav nav-tabs">
18-
<li class="active"><a href="#modules" data-toggle="tab">Registered Modules</a></li>
19-
<li><a href="#repositories" data-toggle="tab">My Modules</a></li>
20-
<li><a href="#organizations" data-toggle="tab">My Organizations</a></li>
21-
</ul>
2+
<div style="margin-bottom: 20px;">
3+
<img style="float:left; height: 80px; padding-right: 10px;" src="<?php echo $this->zfcUserIdentity()->getPhotoUrl() ?>" alt="<?php echo $this->zfcUserDisplayName() ?>"/>
4+
<h3 style="margin-bottom: 0px;">Hello, <?php echo $this->zfcUserDisplayName() ?>!</h3>
5+
<p>We should fill this space with some useful information...</p>
6+
<div class="clearfix"></div>
7+
</div>
8+
9+
<?php foreach ($this->flashMessenger()->getMessages() as $message): ?>
10+
<h3 class="zf-green"><?php echo $message ?></h3>
11+
<?php endforeach; ?>
2212

23-
<div class="tab-content">
24-
<div class="tab-pane active" id="modules">
25-
<?php
26-
$modules = $this->listModule(['user' => true]);
27-
if (empty($modules)) {
28-
?>
29-
<div class="alert alert-block">No modules was submitted yet</div>
30-
<?php
31-
}
32-
foreach ($modules as $module) {
33-
echo $this->moduleView([
34-
'owner' => $module->getOwner(),
35-
'name' => $module->getName(),
36-
'created_at' => $module->getCreatedAt(),
37-
'url' => $module->getUrl(),
38-
'photo_url' => $module->getPhotoUrl(),
39-
'description' => $module->getDescription(),
40-
], 'remove');
41-
}
42-
?>
43-
</div>
44-
<div class="tab-pane" id="repositories">
45-
<div class="well" style="text-align:center">Synchronizing with Github <img src="<?php echo $this->basePath('/img/ajax-loader.gif') ?>" alt="loading" /></div>
46-
</div>
13+
<ul class="nav nav-tabs">
14+
<li class="active"><a href="#modules" data-toggle="tab"><?=$this->translate('Your Registered Modules'); ?></a></li>
15+
<li><a href="#addrepo" data-toggle="tab"><?=$this->translate('Add a New Module'); ?></a></li>
16+
</ul>
4717

48-
<div class="tab-pane" id="organizations">
49-
<?php echo $this->userOrganizations() ?>
50-
</div>
51-
</div>
18+
<div class="tab-content">
19+
<div class="tab-pane active" id="modules">
20+
<?php
21+
$modules = $this->listModule(['user' => true]);
22+
if (empty($modules)) {
23+
?>
24+
<div class="alert alert-info alert-block"><?=$this->translate('You have not added any modules'); ?></div>
25+
<?php
26+
}
27+
foreach ($modules as $module) {
28+
echo $this->moduleView([
29+
'owner' => $module->getOwner(),
30+
'name' => $module->getName(),
31+
'created_at' => $module->getCreatedAt(),
32+
'url' => $module->getUrl(),
33+
'photo_url' => $module->getPhotoUrl(),
34+
'description' => $module->getDescription(),
35+
], 'remove');
36+
}
37+
?>
5238
</div>
53-
<div class="span4">
54-
<div class="sidebar">
55-
<h3 style="text-align:center">Hello, <?php echo $this->zfcUserDisplayName() ?>!</h3>
56-
<img class="thumbnail" src="<?php echo $this->zfcUserIdentity()->getPhotoUrl() ?>" alt="<?php echo $this->zfcUserDisplayName() ?>"/>
57-
<br/>
58-
</div>
39+
<div class="tab-pane" id="addrepo">
40+
5941
</div>
6042
</div>
6143

62-
<?php
63-
$url = $this->url('zf-module');
64-
$this->inlineScript()->appendScript(<<<EOT
65-
66-
$("#repositories").load("$url");
67-
68-
EOT
69-
);

0 commit comments

Comments
 (0)