summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-17 10:43:14 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-17 10:43:14 +0100
commitaf95556560f2474ca504218c0a18eef267e7cd16 (patch)
tree62d91326c8a4542b4588a630802a55cd58fd8c0e /templates
parent86b27436e7845f29a3673cdf8992301e8f865493 (diff)
add article action plugins
Diffstat (limited to 'templates')
-rw-r--r--templates/index.php3
-rw-r--r--templates/part.content.articleaction.php8
-rw-r--r--templates/part.content.php1
3 files changed, 12 insertions, 0 deletions
diff --git a/templates/index.php b/templates/index.php
index 2abd289ed..7862aab77 100644
--- a/templates/index.php
+++ b/templates/index.php
@@ -72,6 +72,9 @@ if (defined('DEBUG') && DEBUG === true) {
</div>
<!-- content -->
+ <script type="text/ng-template" id="articleaction.html">
+ <?php print_unescaped($this->inc('part.content.articleaction')) ?>
+ </script>
<script type="text/ng-template" id="content.html">
<?php print_unescaped($this->inc('part.content')) ?>
</script>
diff --git a/templates/part.content.articleaction.php b/templates/part.content.articleaction.php
new file mode 100644
index 000000000..345458764
--- /dev/null
+++ b/templates/part.content.articleaction.php
@@ -0,0 +1,8 @@
+<ul class="article-action-plugins">
+ <li ng-repeat="plugin in ::plugins" class="util"
+ id="article-plugin-{{ plugin.id }}"
+ ng-click="pluginClick(plugin.id, $event, article)"
+ news-stop-propagation>
+ <button title="{{ plugin.title }}"></button>
+ </li>
+</ul> \ No newline at end of file
diff --git a/templates/part.content.php b/templates/part.content.php
index 3226dc839..b917240aa 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -88,6 +88,7 @@
?>">
</button>
</li>
+ <li><news-article-actions article="item" /></li>
</ul>
</div>