Skip to content

Commit

Permalink
Websites overview
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Moreau-Mathis authored and Julien Moreau-Mathis committed Jan 21, 2013
1 parent 838d99d commit c626d28
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion views/publisher-default.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ <h2>Ajouter un site</h2>
<button type="submit" class="btn-primary">Add this website</button>
</form>
</div>
<div class="zones-overview" style="display:none">
<div class="zones-overview" style="display:yes">
<h2>Create a zone</h2>
<form method="POST" action="/publisher/ads" class="well" id="addZoneForm">
<input type="text" class="zonename clearInput" name="zonename" title="Zone Name" value="Zone Name"/>
Expand Down
43 changes: 32 additions & 11 deletions views/websites.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,38 @@ <h1>Websites overview</h1>
<div id="signup-forms">
<div id="websites-overview">
<ul>
<% _.each( websites, function( website ){ %>

<li class="website">
<strong>
<%- website %>
</strong>

</li>

<% }); %>
</ul>
<% _.each( websites, function( website ){ %>

<li class="website">
<strong> <%- website.name %> </strong>
<a> <%- website.url %> </a>
<label> <%- website.description %> </label>
<label> Created : <a> <%- website.created %> </a> </label>
<label> Modified : <a> <%- website.modified %> </a> </label>
<label> Validated : <a> <%- website.validated %> </a> </label>
</li>



<% _.each( website.zones, function( zone ){ %>

<li class="zones">
<strong> <%- zone.name %> </strong>
<label> Description : <a> <%- zone.description %> </a> </label>
<label> Impression Count : <a> <%- zone.impressionCount %> </a> </label>
<label> Created : <a> <%- zone.created %> </a> </label>
<label> Modified : <a> <%- zone.modified %> </a> </label>
<label> Validated : <a> <%- zone.validated %> </a> </label>

<!--<strong> <%- zone %> </strong>-->
</li>

<% }); %>

<!--<strong> <%- website %> </strong>-->

<% }); %>
</ul>
</div>
</div>
</div>
Expand Down

0 comments on commit c626d28

Please sign in to comment.