Skip to content

Instantly share code, notes, and snippets.

@silentworks
Created March 11, 2013 13:06
Show Gist options
  • Save silentworks/5134082 to your computer and use it in GitHub Desktop.
Save silentworks/5134082 to your computer and use it in GitHub Desktop.
<div id="content" ng-controller="AppCtrl">
<div id="toolbar">
<div id="search"><label for="s">Search:</label> <input id="s" type="text" ng-model="searchText"></div>
</div>
<ul>
{literal}
<li ng-repeat="theme in themes.set | filter:searchText" ng-class="{active: currentTheme == theme.slug}">
<div class="theme">
<div class="top">
<div class="wrapper">
<div class="screenshot">
<img ng-src="{{ theme.screenshot }}" alt="{{ theme.name }}" ng-show="theme.screenshot">
</div>
<div class="details">
<h3>{{ theme.name }} <span>{{ theme.version }}</span></h3>
<div class="scope" ng-show="theme.scope.enabled"></div>
</div>
</div>
<div class="meta">
<a href="#author" class="author">{{ theme.author.name }}</a><span class="scope"><b>scope:</b> {{ theme.scope.name }}</span>
</div>
</div>
<div class="bottom">
<a href="#preview" class="preview" ng-click="details(theme.slug)">Details</a>
<a href="#activate" class="activate" ng-click="activate(theme.slug)">Activate</a>
</div>
</div>
</li>
{/literal}
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment