Commit 994c0536 authored by Sean Hammond's avatar Sean Hammond

Merge pull request #2809 from hypothesis/one-time-bindings

Use Angular 1.3.x+ one-time bindings
parents a7865236 d72272ef
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<span> <span>
<a class="annotation-user" <a class="annotation-user"
target="_blank" target="_blank"
ng-href="{{vm.baseURI}}u/{{vm.user()}}" ng-href="{{::vm.baseURI}}u/{{vm.user()}}"
>{{vm.user() | persona}}</a> >{{vm.user() | persona}}</a>
</span> </span>
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
<i class="h-icon-border-color" ng-show="vm.isHighlight() && !vm.editing()" title="This is a highlight. Click 'edit' to add a note or tag."></i> <i class="h-icon-border-color" ng-show="vm.isHighlight() && !vm.editing()" title="This is a highlight. Click 'edit' to add a note or tag."></i>
<span class="annotation-citation" <span class="annotation-citation"
ng-bind-html="vm.document() | documentTitle" ng-bind-html="vm.document() | documentTitle"
ng-if="!vm.isSidebar"> ng-if="::!vm.isSidebar">
</span> </span>
<span class="annotation-citation-domain" <span class="annotation-citation-domain"
ng-bind-html="vm.document() | documentDomain" ng-bind-html="vm.document() | documentDomain"
ng-if="!vm.isSidebar"> ng-if="::!vm.isSidebar">
</span> </span>
</span> </span>
</span> </span>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
target="_blank" target="_blank"
title="{{vm.updatedString()}}" title="{{vm.updatedString()}}"
ng-if="!vm.editing() && vm.updated()" ng-if="!vm.editing() && vm.updated()"
ng-href="{{vm.baseURI}}a/{{vm.id()}}" ng-href="{{::vm.baseURI}}a/{{vm.id()}}"
>{{vm.timestamp}}</a> >{{vm.timestamp}}</a>
</header> </header>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
name="annotation" name="annotation"
annotation="vm.container.message" annotation="vm.container.message"
is-last-reply="$last" is-last-reply="$last"
is-sidebar="isSidebar" is-sidebar="::isSidebar"
annotation-show-reply-count="{{vm.shouldShowNumReplies()}}" annotation-show-reply-count="{{vm.shouldShowNumReplies()}}"
annotation-reply-count="{{vm.numReplies()}}" annotation-reply-count="{{vm.numReplies()}}"
annotation-reply-count-click="vm.toggleCollapsed()" annotation-reply-count-click="vm.toggleCollapsed()"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
!--> !-->
<div class="top-bar" ng-class="frame.visible && 'shown'" ng-cloak> <div class="top-bar" ng-class="frame.visible && 'shown'" ng-cloak>
<!-- Legacy design for top bar, as used in the stream !--> <!-- Legacy design for top bar, as used in the stream !-->
<div class="top-bar__inner content" ng-if="!isSidebar"> <div class="top-bar__inner content" ng-if="::!isSidebar">
<simple-search <simple-search
class="simple-search" class="simple-search"
query="searchController.query" query="searchController.query"
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
The inner div is styled with 'content' to center it in The inner div is styled with 'content' to center it in
the stream view. the stream view.
!--> !-->
<div class="top-bar__inner content" ng-if="isSidebar"> <div class="top-bar__inner content" ng-if="::isSidebar">
<group-list class="group-list" auth="auth"></group-list> <group-list class="group-list" auth="auth"></group-list>
<div class="top-bar__expander"></div> <div class="top-bar__expander"></div>
<simple-search <simple-search
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment