From 7f1455b3fcecd0bd803de44f599db89ff295dd58 Mon Sep 17 00:00:00 2001 From: Eric Barbour Date: Aug 10 2016 19:35:20 +0000 Subject: Major improvements for Feed UI * Revert the breaks in the card interface for feed widget from switching to fedora-bootstrapp. * Spacing and font size fixes --- diff --git a/hubs/static/client/app/components/Icon.jsx b/hubs/static/client/app/components/Icon.jsx index 08c8d60..9adf0e4 100644 --- a/hubs/static/client/app/components/Icon.jsx +++ b/hubs/static/client/app/components/Icon.jsx @@ -2,16 +2,14 @@ import React from 'react'; const Icon = function (props) { return ( -
-
- - User avatar - -
+
+ + User avatar +
); }; diff --git a/hubs/static/client/app/components/Markup.jsx b/hubs/static/client/app/components/Markup.jsx index f2464fe..7342f58 100644 --- a/hubs/static/client/app/components/Markup.jsx +++ b/hubs/static/client/app/components/Markup.jsx @@ -1,12 +1,25 @@ import React from 'react'; +import SaveNotificationButton from './SaveNotificationButton.jsx'; + import TimeAgo from 'react-timeago'; + export default class Markup extends React.Component { createMarkup() { return { __html: this.props.match.markup }; } render() { const timestamp = this.props.date_time ? () : null; + + + let saveBtn; + if (!this.props.match.saved && this.props.saveUrl) { + saveBtn = ( + ); + } return (

{timestamp} + {saveBtn}
); } diff --git a/hubs/static/client/app/components/Panel.jsx b/hubs/static/client/app/components/Panel.jsx index 7760893..0cd9bdf 100644 --- a/hubs/static/client/app/components/Panel.jsx +++ b/hubs/static/client/app/components/Panel.jsx @@ -2,24 +2,13 @@ import React from 'react'; import Icon from './Icon.jsx'; import Markup from './Markup.jsx'; -import SaveNotificationButton from './SaveNotificationButton.jsx'; const Panel = function (props) { - let saveBtn; - if (!props.match.saved && props.saveUrl) { - saveBtn = ( - ); - } - return ( -
-
+
+
- - {saveBtn} +
); diff --git a/hubs/templates/hubs.html b/hubs/templates/hubs.html index cb29255..3ab75a9 100644 --- a/hubs/templates/hubs.html +++ b/hubs/templates/hubs.html @@ -3,6 +3,32 @@ {% block title %}{{ hub.name }}{% endblock %} {% block content %} +
+ +
diff --git a/hubs/templates/includes/_messages.html b/hubs/templates/includes/_messages.html index 1502b48..1e89ae8 100644 --- a/hubs/templates/includes/_messages.html +++ b/hubs/templates/includes/_messages.html @@ -1,5 +1,5 @@ -
-
+
+
User avatar @@ -12,8 +12,8 @@
-
-
+
+
User avatar @@ -26,8 +26,8 @@
-
-
+
+
User avatar @@ -40,8 +40,8 @@
-
-
+
+
User avatar @@ -54,8 +54,8 @@
-
-
+
+
User avatar @@ -68,8 +68,8 @@
-
-
+
+
User avatar @@ -82,8 +82,8 @@
-
-
+
+
User avatar @@ -96,8 +96,8 @@
-
-
+
+
User avatar @@ -110,8 +110,8 @@
-
-
+
+
User avatar @@ -124,8 +124,8 @@
-
-
+
+
User avatar @@ -138,8 +138,8 @@
-
-
+
+
User avatar diff --git a/hubs/templates/master.html b/hubs/templates/master.html index 1e19d91..e02081b 100644 --- a/hubs/templates/master.html +++ b/hubs/templates/master.html @@ -52,33 +52,6 @@
-
- -
{% block content %}{% endblock %} diff --git a/hubs/templates/stream.html b/hubs/templates/stream.html index 6da69e4..eff03f8 100644 --- a/hubs/templates/stream.html +++ b/hubs/templates/stream.html @@ -6,13 +6,12 @@

My Stream

Notifications, actions, and other things of interest to me

- -