blob: b245ee3bee4e66cc566d59efdfd43d4f63505416 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<div id="app-settings-header">
<button name="app settings"
class="settings-button"
oc-click-slide-toggle="{
selector: '#app-settings-content',
hideOnFocusLost: true,
cssClass: 'opened'
}"></button>
</div>
<div id="app-settings-content">
<fieldset class="personalblock">
<legend><strong><?php p($l->t('Import / Export OPML')); ?></strong></legend>
<input type="file" id="opml-upload" name="import"
oc-read-file="import($fileContent)"/>
<button title="<?php p($l->t('Import')); ?>"
oc-forward-click="{selector:'#opml-upload'}">
<?php p($l->t('Import')); ?>
</button>
<a title="<?php p($l->t('Export')); ?>" class="button"
href="<?php p(\OCP\Util::linkToRoute('news_export_opml')); ?>"
target="_blank"
ng-show="feedBusinessLayer.getNumberOfFeeds() > 0">
<?php p($l->t('Export')); ?>
</a>
<button
title="<?php p($l->t('Export')); ?>"
ng-hide="feedBusinessLayer.getNumberOfFeeds() > 0" disabled>
<?php p($l->t('Export')); ?>
</button>
<p class="error" ng-show="error">
<?php p($l->t('Error when importing: file does not contain valid OPML')); ?>
</p>
</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')); ?>
<input type="file" id="google-upload" name="importgoogle"
oc-read-file="importGoogleReader($fileContent)"/>
<button title="<?php p($l->t('Import')); ?>"
oc-forward-click="{selector:'#google-upload'}">
<?php p($l->t('Import')); ?>
</button>
<p class="error" ng-show="jsonError">
<?php p($l->t('Error when importing: file does not contain valid JSON')); ?>
</p>
</fieldset>
</div>
|