blob: 81c3550d5e0bd7660063d171acb2120d3b8a1077 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
<div id="app-settings-header">
<button name="app settings"
class="settings-button"
news-slide-up="{
selector: '#app-settings-content',
hideOnFocusLost: true,
cssClass: 'opened'
}"></button>
</div>
<div id="app-settings-content">
<h3><?php p($l->t('Settings')); ?></h3>
<p ng-click="Settings.toggleSetting('compact')">
<input type="checkbox" ng-checked="Settings.getSetting('compact')">
<?php p($l->t('Use compact view')); ?>
</p>
<p ng-click="Settings.toggleSetting('showAll')">
<input type="checkbox" ng-checked="Settings.getSetting('showAll')">
<?php p($l->t('Show unread articles')); ?>
</p>
<p ng-click="Settings.toggleSetting('oldestFirst')">
<input type="checkbox" ng-checked="Settings.getSetting('oldestFirst')">
<?php p($l->t('Order by oldest first')); ?>
</p>
<p ng-click="Settings.toggleSetting('preventReadOnScroll')">
<input type="checkbox" ng-checked="Settings.getSetting('preventReadOnScroll')">
<?php p($l->t('Do not as mark read when scrolling')); ?>
</p>
<h3><?php p($l->t('Subscriptions (OPML)')); ?></h3>
<input type="file"
id="opml-upload"
name="import"
accept="text/x-opml, text/xml"
news-read-file="Settings.importOpml($fileContent)"/>
<button title="<?php p($l->t('Import')); ?>"
class="upload-icon svg"
news-trigger-click="#opml-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.opml')); ?>"
target="_blank"
ng-show="feedSize() > 0">
<?php p($l->t('Export')); ?>
</a>
<button
class="download-icon svg"
title="<?php p($l->t('Export')); ?>"
ng-hide="feedSize() > 0"
disabled>
<?php p($l->t('Export')); ?>
</button>
<p class="error" ng-show="Settings.opmlImportError">
<?php p($l->t('Error when importing: file does not contain valid OPML')); ?>
</p>
<h3><?php p($l->t('Unread/Starred Articles')); ?></h3>
<input
type="file"
id="article-upload"
name="importarticle"
accept="application/json"
news-read-file="Settings.importArticles($fileContent)"/>
<button title="<?php p($l->t('Import')); ?>"
class="upload-icon svg"
ng-class="{loading: Settings.importing}"
ng-disabled="importing"
news-trigger-click="#article-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="feedSize() > 0">
<?php p($l->t('Export')); ?>
</a>
<button
class="download-icon svg"
title="<?php p($l->t('Export')); ?>"
ng-hide="feedSize() > 0"
disabled>
<?php p($l->t('Export')); ?>
</button>
<p class="error" ng-show="Settings.articleImportError">
<?php p($l->t('Error when importing: file does not contain valid JSON')); ?>
</p>
</div>
|