summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-06-08 23:50:42 -0400
committerMalf Furious <m@lfurio.us>2016-06-08 23:50:42 -0400
commit6c9c352c91814775c6b56c43dd4837a8f3718e86 (patch)
treefe5715fc6ebeb0fea23864f9637796b0dad897ef
parent3f58919204a6d21111b6ff00ccec1e2a9dfac040 (diff)
downloadscrott-6c9c352c91814775c6b56c43dd4837a8f3718e86.tar.gz
scrott-6c9c352c91814775c6b56c43dd4837a8f3718e86.zip
Start design for group view
-rw-r--r--app/model/obj.mod.php2
-rw-r--r--app/view/obj/group.view.php20
-rw-r--r--examples/example.html11
3 files changed, 22 insertions, 11 deletions
diff --git a/app/model/obj.mod.php b/app/model/obj.mod.php
index 07be4b4..f412e3c 100644
--- a/app/model/obj.mod.php
+++ b/app/model/obj.mod.php
@@ -25,6 +25,8 @@ class ObjModel extends CommonModel
function initGroup($guid)
{
$this->group = new Group($guid);
+ $this->owner = $this->group->getOwner();
+ $this->members = $this->group->getMembers();
}
}
diff --git a/app/view/obj/group.view.php b/app/view/obj/group.view.php
index 3c0a1cb..734a826 100644
--- a/app/view/obj/group.view.php
+++ b/app/view/obj/group.view.php
@@ -22,6 +22,26 @@
<body>
<?php include "view/common/topp.view.php"; ?>
+
+ <div class="container">
+ <div class="well well-lg">
+ <div class="row">
+ <div class="col-md-4">
+ <h1><?=$mod->group->name?></h1>
+ <img src="<?=$mod->owner->getHeadImage()?>" alt="<?=$mod->owner->getDisplayName()?>" class="img-circle" height="50" />
+
+ <?php if (count($mod->members)) { ?>
+ <span class="glyphicon glyphicon-plus"></span>
+ <?php } ?>
+
+ <?php foreach ($mod->members as $member) { ?>
+ <img src="<?=$member->getHeadImage()?>" alt="<?=$member->getDisplayName()?>" class="img-circle" height="50" />
+ <?php } ?>
+ </div>
+ </div>
+ </div>
+ </div>
+
<?php include "view/common/foot.view.php"; ?>
</body>
</html>
diff --git a/examples/example.html b/examples/example.html
index e1e5618..778f6d8 100644
--- a/examples/example.html
+++ b/examples/example.html
@@ -1,5 +1,3 @@
-<!DOCTYPE html>
-
<html lang="en">
<body>
<!--NAVBAR-->
@@ -52,15 +50,6 @@
<div class="container">
<div class="well well-lg">
<div class="row">
- <div class="col-md-4">
- <h1>Save the World <span class="glyphicon glyphicon-globe"></span><!--Denoting this pad as globally visible--></h1>
- <img src="assets/img/sonic.png" alt="Sonic" class="img-circle" height="50" />
- <span class="glyphicon glyphicon-plus"></span>
- <img src="assets/img/tails.png" alt="Miles" class="img-circle" height="50" />
- <img src="assets/img/amy.png" alt="Amy" class="img-circle" height="50" />
- <img src="assets/img/knuckles.png" alt="Knuckles" class="img-circle" height="50" />
- </div>
-
<div class="col-md-8">
<legend class="text-center">Issue Progress</legend>
<div class="progress">