mirror of
https://github.com/wassname/side-by-side.git
synced 2026-08-30 11:33:21 +08:00
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
.pure-menu.pure-menu-open.pure-menu-horizontal.menu-verses(ng-click="flipPick()")
|
|
.pure-g-r
|
|
.version(ng-repeat="heading in headings")
|
|
.version-padded
|
|
.version-menu
|
|
.arrow.fa.fa-arrow-up(ng-show="!pick")
|
|
.arrow.fa.fa-arrow-down(ng-show="pick")
|
|
.text(ng-bind-html="heading")
|
|
|
|
.pick(ng-show="pick")
|
|
.pick-in
|
|
table
|
|
tr
|
|
th(ng-repeat="attribute in metaKeys" ng-bind-html="attribute")
|
|
tr(ng-repeat="poem in all" class="switch" ng-class="{disabled: !poem.meta.Active}" ng-click="switchActive(poem)")
|
|
td(ng-repeat="attribute in metaKeys" ng-bind-html="poem.meta[attribute]")
|
|
|
|
// verses
|
|
#content
|
|
.pure-g-r(du-scrollspy ng-href="#section-meta" id="section-meta")
|
|
.version(ng-repeat="poemmeta in meta")
|
|
.version-padded
|
|
.version-container.version-container-top
|
|
p
|
|
.text(ng-repeat="key in metaKeys") #[em {{key}}:] {{poemmeta[key]}}
|
|
|
|
.pure-g-r(du-scrollspy ng-href="#section-{{$index + 1}}" offset="100px" ng-repeat="verse in verses" id="section-{{$index + 1}}")
|
|
.version(ng-repeat="version in verse")
|
|
.version-padded
|
|
.version-container
|
|
.section(ng-hide="version.section == ''" ng-bind-html="version.section")
|
|
.text(ng-bind-html="version.text")
|