<?php use Enpowi\Modules\DataOut; use Enpowi\Pages\Page; use Enpowi\App; use Enpowi\Modules\Module; Module::is(); $name = App::param('name'); $data = (new DataOut())->add('name', $name)->add('leftPage', Page::byId(App::param('left')))->add('rightPage', Page::byId(App::param('right')))->out(); ?> <div v-module data="<?php echo $data; ?> " class="container"> <h3><span v-t>Comparing: </span>{{ name }}</h3> <table class="table"> <thead> <tr> <th class="center"><span v-t>Edited </span>{{ leftPage.created }}</th> <th class="center"><span v-t>Edited </span>{{ rightPage.created }}</th> </tr> </thead> <tbody> <tr> <td><pre>{{ leftPage.content }}</pre></td> <td><pre>{{ rightPage.content }}</pre></td>
<?php use Enpowi\Pages\Page; use Enpowi\Modules\DataOut; use Enpowi\Modules\Module; Module::is(); (new DataOut())->add('pages', Page::pages())->bind(); ?> <title>{{session.siteName}} - Pages</title> <div v-module class="container"> <!--TODO page name--> <h3><span v-t>Pages</span> <a v-title="New Page" href="#/page/edit"><span class="glyphicon glyphicon-plus-sign"></span></a></h3> <table class="table table-hover click"> <thead> <tr> <th v-t>Page Name</th> <th v-t>Last Edited</th> <th v-t>Created By</th> </tr> </thead> <tbody> <tr v-for="page in pages" v-on:click="go('page?name=' + page.name)"> <td>{{ page.name }}</td> <td>{{ page.created }}</td> <td>{{ page.user.email }}</td> </tr> </tbody>
<?php use Enpowi\Pages\Page; use Enpowi\Modules\DataOut; use Enpowi\Modules\Module; Module::is(); $data = (new DataOut())->add('pages', Page::pages())->out(); ?> <title>{{session.siteName}} - Pages</title> <div v-module data="<?php echo $data; ?> " class="container"> <!--TODO page name--> <h3><span v-t>Pages</span> <a v-title="New Page" href="#/page/edit"><span class="glyphicon glyphicon-plus-sign"></span></a></h3> <table class="table table-hover click"> <thead> <tr> <th v-t>Page Name</th> <th v-t>Last Edited</th> <th v-t>Created By</th> </tr> </thead> <tbody> <tr v-repeat="page : pages" v-on="click : go('page?name=' + page.name)"> <td>{{ page.name }}</td>