summaryrefslogtreecommitdiff
path: root/core/src/main/assets
diff options
context:
space:
mode:
authormalockin <malockin@gmail.com>2020-05-03 22:56:31 +0300
committermalockin <malockin@gmail.com>2020-05-03 22:56:31 +0300
commit1cdfd80ca1561ca0f33313424488354ef6349749 (patch)
tree4d8f60e3768263bd1387823aa33b22b6d6ccd340 /core/src/main/assets
parent10e8f7c614d60104ac381c6593116c5bbfb1595a (diff)
downloadAntennaPod-1cdfd80ca1561ca0f33313424488354ef6349749.zip
Updated PR according to comments
Removed unnecessary checks in while loop, and converted it to a do...while loop. Moved favorites export under HTML section. Corrected indentation in resources files. Moved to using a unified template for all HTML exports. Removed unnecessary strings, corrected capitalization.
Diffstat (limited to 'core/src/main/assets')
-rw-r--r--core/src/main/assets/favorites-export-template.html82
-rw-r--r--core/src/main/assets/html-export-template.html4
2 files changed, 2 insertions, 84 deletions
diff --git a/core/src/main/assets/favorites-export-template.html b/core/src/main/assets/favorites-export-template.html
deleted file mode 100644
index ace80591b..000000000
--- a/core/src/main/assets/favorites-export-template.html
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version='1.0' encoding='UTF-8' standalone='no' ?>
-<html>
- <head>
- <title>AntennaPod Favorites</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <style>
- * {
- font-family: 'Lato', sans-serif;
- font-weight: 300;
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- }
- html {
- background: #3498db;
- text-align: center;
- padding: 10px;
- }
- h1 {
- color: #fff;
- font-weight: 300;
- display: inline-block;
- margin-top: 40px;
- margin-bottom: 20px;
- vertical-align: top;
- }
- li {
- width: 100%;
- max-width: 500px;
- display: block;
- display: inline-flex;
- padding: 10px;
- }
- li > div {
- background: #fefefe;
- padding: 10px;
- display: inline-block;
- width: 100%;
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
- text-align: left;
- }
- li span {
- margin-top: 10px;
- display: block;
- }
- a {
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- span a {
- color: #3498db;
- }
- img {
- width: 100px;
- height: 100px;
- margin-right: 10px;
- }
- li > div > img {
- float: left;
- }
- li > div > p {
- width: 100%;
- }
- body > a {
- color: #ffffff;
- display: inline-block;
- margin-top: 10px;
- clear:left;
- }
- </style>
- </head>
- <body>
- <img src="https://antennapod.org/assets/img/antennapod-logo.png" />
- <h1>AntennaPod Favorites</h1>
- <ul>
- {FAVORITES}
- </ul>
- <a href="https://play.google.com/store/apps/details?id=de.danoeh.antennapod" target="_blank">Get AntennaPod</a>
- </body>
-</html>
diff --git a/core/src/main/assets/html-export-template.html b/core/src/main/assets/html-export-template.html
index ddab27a43..fd54a8dc6 100644
--- a/core/src/main/assets/html-export-template.html
+++ b/core/src/main/assets/html-export-template.html
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8' standalone='no' ?>
<html>
<head>
- <title>AntennaPod Subscriptions</title>
+ <title>AntennaPod {TITLE}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* {
@@ -76,7 +76,7 @@
</head>
<body>
<img src="https://antennapod.org/assets/img/antennapod-logo.png" />
- <h1>AntennaPod Subscriptions</h1>
+ <h1>AntennaPod {TITLE}</h1>
<ul>
{FEEDS}
</ul>