summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/index.php22
-rw-r--r--views/settings.php13
2 files changed, 21 insertions, 14 deletions
diff --git a/views/index.php b/views/index.php
index 4277fe1..4542422 100644
--- a/views/index.php
+++ b/views/index.php
@@ -5,16 +5,18 @@
<p class="tagline">Quill is a simple app for posting text notes to your website.</p>
-<? if(session('me')):
- if ( profile('photo') ) {
- ?> <img src="<?php echo profile('photo'); ?>" height="125" alt="Profile Image" />
-<?php }
- if ( profile('name') ) {
- ?> <p><?php echo profile('name'); ?></p>
-<?php }
- ?>
-
- <p>You're already signed in!<p>
+ <? if(session('me')): ?>
+
+ <? if(profile('photo')): ?>
+ <img src="<?php echo profile('photo'); ?>" height="125" alt="Profile Image" style="border: 1px #bbb solid; border-radius: 12px;" />
+ <? endif ?>
+ <? if(profile('name')): ?>
+ <p>Signed in as: <?= htmlspecialchars(profile('name')); ?></p>
+ <? endif ?>
+ <? if(!profile('name') && !profile('photo')): ?>
+ <p>You're already signed in!</p>
+ <? endif ?>
+
<p><a href="/dashboard" class="btn btn-primary">Continue</a></p>
<? else: ?>
<p>To use Quill, sign in with your domain. Your website will need to support <a href="https://indieweb.org/micropub">Micropub</a> for creating new posts.</p>
diff --git a/views/settings.php b/views/settings.php
index 51d3a6b..0f2c5e3 100644
--- a/views/settings.php
+++ b/views/settings.php
@@ -8,13 +8,18 @@
<td>me</td>
<td><code><?= $this->user->url; ?></code> (should be your URL)</td>
</tr>
- <?php if ( profile('name') ) {
- ?>
+ <?php if(profile('name')) { ?>
<tr>
- <td>User Name</td>
+ <td>Name</td>
<td><code><?= profile('name'); ?></code> </td>
</tr>
- <?php } ?>
+ <?php } ?>
+ <?php if(profile('photo')) { ?>
+ <tr>
+ <td>Photo</td>
+ <td><code><?= profile('photo'); ?></code> </td>
+ </tr>
+ <?php } ?>
<tr>
<td>scope</td>
<td><code><?= $this->user->micropub_scope ?></code> (should be a space-separated list of permissions including "create")</td>