modifications sur le template default
[mw_sourceml] / app / out / default / views / sources / groupe / view.php
index 7daaf59..180eb2a 100644 (file)
@@ -1,9 +1,18 @@
-<div class="description">
-<?php echo $this->out["groupe"]["description"] ?>
-</div>
+<article class="groupe">
+  <header>
+    <h1><?php echo $this->out["groupe"]["nom"]; ?></h1>
+  </header>
+
+  <?php if($this->out["groupe"]["description"]) : ?>
+  <div class="description">
+  <?php echo $this->out["groupe"]["description"] ?>
+  </div>
+  <?php endif; ?>
+  <ul class="groupes_sources">
+    <li><a href="<?php echo $this->url("sources/morceau", array("groupe" => $this->out["groupe"]["id"])); ?>">Morceaux</a></li>
+    <li><a href="<?php echo $this->url("sources/piste", array("groupe" => $this->out["groupe"]["id"])); ?>">Sources</a></li>
+  </ul>
 
-<div class="clear"><!-- --></div>
-<br />
 <?php
 
   if
@@ -12,8 +21,7 @@
   ) :
 
 ?>
-
-<h3 class="menu_albums">Albums</h3>
+<h2 class="menu_albums">Albums</h2>
 <ul class="menu_albums">
 <?php foreach($this->out["albums"]["list"] as $id_album => $album) : ?>
   <li><a href="<?php echo $this->url("sources/album/view", array("album" => $id_album)) ?>" title="<?php echo str_replace("\"", "&quot;", $album["titre"]) ?>">
 </ul>
 <div class="clear"><!-- --></div>
 <?php endif; ?>
+
+<?php if($this->out["groupe"]["contact_form"]) : ?>
+<h2>Contact</h2>
+<p>
+  <a href="<?php echo $this->url("forms/sourceml/contact_author", array("id" => $this->out["groupe"]["id"])) ?>">Envoyer un message à <?php echo $this->out["groupe"]["nom"]; ?></a>.
+</p>
+<?php endif; ?>
+</article>
\ No newline at end of file