diff --git a/src/app/src/App.vue b/src/app/src/App.vue
index c4b9915..3e2898b 100644
--- a/src/app/src/App.vue
+++ b/src/app/src/App.vue
@@ -4,7 +4,7 @@
md-app-toolbar.md-large.md-dense.md-primary
.md-toolbar-row
.md-toolbar-section-start
- span.md-title
+ router-link(to='/').md-title
span(style='font-weight:100;') my
span(style='font-weight:400;') Prayer
span(style='font-weight:700;') Journal
@@ -18,14 +18,15 @@
:md-duration='snackbar.interval'
ref='snackbar')
| {{ snackbar.message }}
- p.mpj-muted-text.mpj-text-right
- | myPrayerJournal v{{ version }}
- br
- em: small.
- #[router-link(:to="{ name: 'PrivacyPolicy' }") Privacy Policy] •
- #[router-link(:to="{ name: 'TermsOfService' }") Terms of Service] •
- #[a(href='https://github.com/bit-badger/myprayerjournal' target='_blank') Developed] and hosted by
- #[a(href='https://bitbadger.solutions' target='_blank') Bit Badger Solutions]
+ footer
+ p.mpj-muted-text.mpj-text-right
+ | myPrayerJournal v{{ version }}
+ br
+ em: small.
+ #[router-link(to='/legal/privacy-policy') Privacy Policy] •
+ #[router-link(to='/legal/terms-of-service') Terms of Service] •
+ #[a(href='https://github.com/bit-badger/myprayerjournal' target='_blank') Developed] and hosted by
+ #[a(href='https://bitbadger.solutions' target='_blank') Bit Badger Solutions]
diff --git a/src/app/src/components/Home.vue b/src/app/src/components/Home.vue
index 8b94bc9..c764a6b 100644
--- a/src/app/src/components/Home.vue
+++ b/src/app/src/components/Home.vue
@@ -1,16 +1,16 @@
-article.mpj-main-content(role='main')
+md-content(role='main').mpj-main-content
page-title(title='Welcome!'
hideOnPage=true)
p
p.
myPrayerJournal is a place where individuals can record their prayer requests, record that they prayed for them,
- update them as God moves in the situation, and record a final answer received on that request. It will also allow
+ update them as God moves in the situation, and record a final answer received on that request. It also allows
individuals to review their answered prayers.
p.
- This site is currently in beta, but it is open and available to the general public. To get started, simply click
- the “Log On” link above, and log on with either a Microsoft or Google account. You can also learn more
- about the site at the “Docs” link, also above.
+ This site is open and available to the general public. To get started, simply click the “Log On” link
+ above, and log on with either a Microsoft or Google account. You can also learn more about the site at the
+ “Docs” link, also above.
-
diff --git a/src/app/src/components/common/Navigation.vue b/src/app/src/components/common/Navigation.vue
index 671fadf..790b700 100644
--- a/src/app/src/components/common/Navigation.vue
+++ b/src/app/src/components/common/Navigation.vue
@@ -1,32 +1,30 @@
.md-toolbar-row
- md-tabs.md-primary(md-sync-route)
- md-tab(md-label='Home'
- :to="{ name: 'Home' }")#mpj-home
+ md-tabs(md-sync-route).md-primary
md-tab(v-if='isAuthenticated'
md-label='Journal'
- :to="{ name: 'Journal' }")#mpj-journal
+ to='/journal')
md-tab(v-if='isAuthenticated'
md-label='Active'
- :to="{ name: 'ActiveRequests' }")#mpj-active
+ to='/requests/active')
md-tab(v-if='hasSnoozed'
md-label='Snoozed'
- :to="{ name: 'SnoozedRequests' }")#mpj-snoozed
+ to='/requests/snoozed')
md-tab(v-if='isAuthenticated'
md-label='Answered'
- :to="{ name: 'AnsweredRequests' }")#mpj-answered
+ to='/requests/answered')
md-tab(v-if='isAuthenticated'
md-label='Log Off'
href='#'
- @click.stop='logOff()')#mpj-log-off
+ @click.stop='logOff()')
md-tab(v-if='!isAuthenticated'
md-label='Log On'
href='#'
- @click.stop='logOn()')#mpj-log-on
+ @click.stop='logOn()')
md-tab(md-label='Docs'
href='https://docs.prayerjournal.me'
target='_blank'
- @click.stop='')#mpj-docs
+ @click.stop='')
-
-
diff --git a/src/app/src/components/common/PageTitle.vue b/src/app/src/components/common/PageTitle.vue
index f3734b1..7f5c04b 100644
--- a/src/app/src/components/common/PageTitle.vue
+++ b/src/app/src/components/common/PageTitle.vue
@@ -1,6 +1,6 @@
-h1.md-title(v-if='!hideOnPage'
- v-html='title')
+h1(v-if='!hideOnPage'
+ v-html='title').md-title
-
-
diff --git a/src/app/src/components/request/FullRequest.vue b/src/app/src/components/request/FullRequest.vue
index dd4f960..e54556f 100644
--- a/src/app/src/components/request/FullRequest.vue
+++ b/src/app/src/components/request/FullRequest.vue
@@ -1,22 +1,24 @@
-article.mpj-main-content(role='main')
- page-title(title='Full Prayer Request')
- template(v-if='request')
- p
- span(v-if='isAnswered') Answered {{ formatDate(answered) }} (#[date-from-now(:value='answered')])
- small: em.mpj-muted-text prayed {{ prayedCount }} times, open {{ openDays }} days
- p.mpj-request-text {{ lastText }}
- br
- table.mpj-request-log
- thead
- tr
- th Action
- th Update / Notes
- tbody
- tr(v-for='item in log' :key='item.asOf')
- td {{ item.status }} on #[span.mpj-text-nowrap {{ formatDate(item.asOf) }}]
- td(v-if='item.text').mpj-request-text {{ item.text }}
- td(v-else)
+md-content(role='main').mpj-main-content
+ page-title(title='Full Prayer Request'
+ hide-on-page=true)
+ md-card(v-if='request')
+ md-card-header
+ .md-title Full Prayer Request
+ .md-subhead
+ span(v-if='isAnswered') Answered {{ formatDate(answered) }} (#[date-from-now(:value='answered')]) !{' • '}
+ | Prayed {{ prayedCount }} times • Open {{ openDays }} days
+ md-card-content.mpj-full-page-card
+ p.mpj-request-text {{ lastText }}
+ md-table
+ md-table-row
+ md-table-head Action
+ md-table-head Update / Notes
+ md-table-row(v-for='item in log'
+ :key='item.asOf')
+ md-table-cell.mpj-valign-top {{ item.status }} on #[span.mpj-text-nowrap {{ formatDate(item.asOf) }}]
+ md-table-cell(v-if='item.text').mpj-request-text.mpj-valign-top {{ item.text }}
+ md-table-cell(v-else)
p(v-else) Loading request...
diff --git a/src/app/src/components/request/NotesEdit.vue b/src/app/src/components/request/NotesEdit.vue
index ab99bce..6f964bf 100644
--- a/src/app/src/components/request/NotesEdit.vue
+++ b/src/app/src/components/request/NotesEdit.vue
@@ -8,12 +8,8 @@ md-dialog(:md-active.sync='notesVisible').mpj-note-dialog
md-autogrow
@blur='trimText()')
md-dialog-actions
- md-button(@click='saveNotes()').md-primary
- md-icon save
- = ' Save'
- md-button(@click='closeDialog()')
- md-icon undo
- = ' Cancel'
+ md-button(@click='saveNotes()').md-primary #[md-icon save] Save
+ md-button(@click='closeDialog()') #[md-icon undo] Cancel
.mpj-dialog-content
div(v-if='hasPriorNotes')
p.mpj-text-center: strong Prior Notes for This Request
@@ -26,8 +22,7 @@ md-dialog(:md-active.sync='notesVisible').mpj-note-dialog
div(v-else-if='noPriorNotes').mpj-text-center.mpj-muted-text There are no prior notes for this request
div(v-else).mpj-text-center
hr
- md-button(@click='loadNotes()').
- #[md-icon cloud_download] Load Prior Notes
+ md-button(@click='loadNotes()') #[md-icon cloud_download] Load Prior Notes
-
diff --git a/src/app/src/components/request/RequestCard.vue b/src/app/src/components/request/RequestCard.vue
index aa91ac6..a3b5fbf 100644
--- a/src/app/src/components/request/RequestCard.vue
+++ b/src/app/src/components/request/RequestCard.vue
@@ -1,31 +1,27 @@
-md-card.mpj-request-card(v-if='shouldDisplay'
- md-with-hover)
+md-card(v-if='shouldDisplay'
+ md-with-hover).mpj-request-card
md-card-actions(md-alignment='space-between')
- md-button.md-icon-button.md-raised.md-primary(@click='markPrayed()')
+ md-button(@click='markPrayed()').md-icon-button.md-raised.md-primary
md-icon done
md-tooltip(md-direction='top'
md-delay=1000) Mark as Prayed
span
- md-button.md-icon-button.md-raised(@click.stop='showEdit()')
+ md-button(@click.stop='showEdit()').md-icon-button.md-raised
md-icon edit
md-tooltip(md-direction='top'
md-delay=1000) Edit Request
- md-button.md-icon-button.md-raised(@click.stop='showNotes()')
+ md-button(@click.stop='showNotes()').md-icon-button.md-raised
md-icon comment
md-tooltip(md-direction='top'
md-delay=1000) Add Notes
- md-button.md-icon-button.md-raised(@click.stop='snooze()')
+ md-button(@click.stop='snooze()').md-icon-button.md-raised
md-icon schedule
md-tooltip(md-direction='top'
md-delay=1000) Snooze Request
md-card-content
- p.card-text.mpj-request-text
- | {{ request.text }}
- p.as-of.mpj-text-right: small.mpj-muted-text: em
- = '(last activity '
- date-from-now(:value='request.asOf')
- | )
+ p.mpj-request-text {{ request.text }}
+ p.mpj-text-right: small.mpj-muted-text: em (last activity #[date-from-now(:value='request.asOf')])
-
diff --git a/src/app/src/components/request/RequestListItem.vue b/src/app/src/components/request/RequestListItem.vue
index 3d14af3..0bd120f 100644
--- a/src/app/src/components/request/RequestListItem.vue
+++ b/src/app/src/components/request/RequestListItem.vue
@@ -1,6 +1,6 @@
md-table-row
- md-table-cell.mpj-action-cell
+ md-table-cell.mpj-action-cell.mpj-valign-top
md-button(@click='viewFull').md-icon-button.md-raised
md-icon description
md-tooltip(md-direction='top'
@@ -16,20 +16,16 @@ md-table-row
md-tooltip(md-direction='top'
md-delay=250) Cancel Snooze
template(v-if='isPending')
- md-button(@click='showNow()').md-icon-button.md-rasied
+ md-button(@click='showNow()').md-icon-button.md-raised
md-icon restore
md-tooltip(md-direction='top'
md-delay=250) Show Now
- md-table-cell.mpj-request-cell
- p.mpj-request-text
- | {{ request.text }}
+ md-table-cell.mpj-valign-top
+ p.mpj-request-text {{ request.text }}
br(v-if='isSnoozed || isPending || isAnswered')
- small(v-if='isSnoozed').mpj-muted-text: em.
- Snooze expires #[date-from-now(:value='request.snoozedUntil')]
- small(v-if='isPending').mpj-muted-text: em.
- Request scheduled to reappear #[date-from-now(:value='request.showAfter')]
- small(v-if='isAnswered').mpj-muted-text: em.
- Answered #[date-from-now(:value='request.asOf')]
+ small(v-if='isSnoozed').mpj-muted-text: em Snooze expires #[date-from-now(:value='request.snoozedUntil')]
+ small(v-if='isPending').mpj-muted-text: em Request appears next #[date-from-now(:value='request.showAfter')]
+ small(v-if='isAnswered').mpj-muted-text: em Answered #[date-from-now(:value='request.asOf')]