From 77c99103d0221f20ea342169821b90fa987ecf93 Mon Sep 17 00:00:00 2001 From: Steven Miers Date: Mon, 29 Jun 2015 13:12:54 -0500 Subject: [PATCH] VRFS-3276 : Calendar feed markup and styling. Included as partial. --- web/app/assets/stylesheets/client/account.css.scss | 10 ++++++++++ web/app/views/clients/_account_sessions.html.haml | 3 +++ web/app/views/clients/_calendar.html.slim | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100644 web/app/views/clients/_calendar.html.slim diff --git a/web/app/assets/stylesheets/client/account.css.scss b/web/app/assets/stylesheets/client/account.css.scss index fae2ccd46..606bd73f8 100644 --- a/web/app/assets/stylesheets/client/account.css.scss +++ b/web/app/assets/stylesheets/client/account.css.scss @@ -4,6 +4,16 @@ .session-detail-scroller, #account-identity-content-scroller { + .ics-feed-caption { + font-size: 1.2em; + margin: 0em 0em 1em 0em; + } + + .ics-feed-link { + font-size: 1.1em; + margin: 0.5em 0em 1em 0em; + } + .content-wrapper { padding:10px 30px; } diff --git a/web/app/views/clients/_account_sessions.html.haml b/web/app/views/clients/_account_sessions.html.haml index 8e0824c28..2d46b75f4 100644 --- a/web/app/views/clients/_account_sessions.html.haml +++ b/web/app/views/clients/_account_sessions.html.haml @@ -22,6 +22,9 @@ %thead %tbody .clearall + .content-wrapper + =render "calendar" + / end content scrolling area %script{type: 'text/template', id: 'template-account-session'} diff --git a/web/app/views/clients/_calendar.html.slim b/web/app/views/clients/_calendar.html.slim new file mode 100644 index 000000000..9c0817619 --- /dev/null +++ b/web/app/views/clients/_calendar.html.slim @@ -0,0 +1,9 @@ +-if current_user + .account-calendar + .ics-feed-caption Following is a URL for your personal JamKazam .ics calendar, which tracks all sessions and events to which you have RSVP'd: + .ics-feed-link + =api_users_calendar_feed_url(current_user) + .ics-help-link + a href="" How to subscribe to your feed in Google Calendar + .ics-help-link + a href="" How to subscribe to your feed in Microsoft Outlook