summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-09-11 16:42:03 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2013-09-12 01:00:32 +0200
commit09f60e75c90e5734a3b11a0cca944bd42bc41665 (patch)
tree8ecdc41cd6bb7c2b338e8e82b2b1e090b4d82ce4 /templates
parent24cab805e7484a5d206974d05f8de38641435f8c (diff)
#342 implement export
Diffstat (limited to 'templates')
-rw-r--r--templates/part.settings.php28
1 files changed, 21 insertions, 7 deletions
diff --git a/templates/part.settings.php b/templates/part.settings.php
index b245ee3be..9d7763978 100644
--- a/templates/part.settings.php
+++ b/templates/part.settings.php
@@ -8,25 +8,27 @@
}"></button>
</div>
-<div id="app-settings-content">
+<div id="app-settings-content" style="display:block">
<fieldset class="personalblock">
- <legend><strong><?php p($l->t('Import / Export OPML')); ?></strong></legend>
+ <legend><strong><?php p($l->t('Subscriptions')); ?></strong></legend>
- <input type="file" id="opml-upload" name="import"
+ <input type="file" id="opml-upload" name="import" accept="text/x-opml, text/xml"
oc-read-file="import($fileContent)"/>
<button title="<?php p($l->t('Import')); ?>"
+ class="upload-icon svg"
oc-forward-click="{selector:'#opml-upload'}">
<?php p($l->t('Import')); ?>
</button>
- <a title="<?php p($l->t('Export')); ?>" class="button"
+ <a title="<?php p($l->t('Export')); ?>" class="button download-icon svg"
href="<?php p(\OCP\Util::linkToRoute('news_export_opml')); ?>"
target="_blank"
ng-show="feedBusinessLayer.getNumberOfFeeds() > 0">
<?php p($l->t('Export')); ?>
</a>
<button
+ class="download-icon svg"
title="<?php p($l->t('Export')); ?>"
ng-hide="feedBusinessLayer.getNumberOfFeeds() > 0" disabled>
<?php p($l->t('Export')); ?>
@@ -39,16 +41,28 @@
</fieldset>
<fieldset class="personalblock">
- <legend><strong><?php p($l->t('Import Google Reader JSON')); ?></strong></legend>
- <p><?php p($l->t('To import starred and shared articles from Google
- Reader please upload the .json files from the Google Takeout archive')); ?>
+ <legend><strong><?php p($l->t('Unread/Starred Articles')); ?></strong></legend>
<input type="file" id="google-upload" name="importgoogle"
oc-read-file="importGoogleReader($fileContent)"/>
<button title="<?php p($l->t('Import')); ?>"
+ class="upload-icon svg"
oc-forward-click="{selector:'#google-upload'}">
<?php p($l->t('Import')); ?>
</button>
+ <a title="<?php p($l->t('Export')); ?>" class="button download-icon svg"
+ href="<?php p(\OCP\Util::linkToRoute('news_export_articles')); ?>"
+ target="_blank"
+ ng-show="feedBusinessLayer.getNumberOfFeeds() > 0">
+ <?php p($l->t('Export')); ?>
+ </a>
+ <button
+ class="download-icon svg"
+ title="<?php p($l->t('Export')); ?>"
+ ng-hide="feedBusinessLayer.getNumberOfFeeds() > 0" disabled>
+ <?php p($l->t('Export')); ?>
+ </button>
+
<p class="error" ng-show="jsonError">
<?php p($l->t('Error when importing: file does not contain valid JSON')); ?>
</p>