ryohek 6 سال پیش
والد
کامیت
687647d197

+ 3 - 1
src/client/js/components/Navbar/GrowiSubNavigation.jsx

@@ -22,6 +22,7 @@ const GrowiSubNavigation = (props) => {
   } = pageContainer.state;
   } = pageContainer.state;
   const isCompactMode = true;
   const isCompactMode = true;
   const compactClassName = isCompactMode ? 'fixed-top grw-compact-subnavbar px-3' : null;
   const compactClassName = isCompactMode ? 'fixed-top grw-compact-subnavbar px-3' : null;
+
   // Display only the RevisionPath if the page is trash or forbidden
   // Display only the RevisionPath if the page is trash or forbidden
   if (isTrashPage(path) || isPageForbidden) {
   if (isTrashPage(path) || isPageForbidden) {
     return (
     return (
@@ -58,10 +59,11 @@ const GrowiSubNavigation = (props) => {
         {creator != null && <li><PageCreator creator={creator} createdAt={createdAt} /></li>}
         {creator != null && <li><PageCreator creator={creator} createdAt={createdAt} /></li>}
         {revisionAuthor != null && <li className="mt-1"><RevisionAuthor revisionAuthor={revisionAuthor} updatedAt={updatedAt} /></li>}
         {revisionAuthor != null && <li className="mt-1"><RevisionAuthor revisionAuthor={revisionAuthor} updatedAt={updatedAt} /></li>}
       </ul>
       </ul>
+
     </div>
     </div>
   );
   );
-};
 
 
+};
 
 
 /**
 /**
  * Wrapper component for using unstated
  * Wrapper component for using unstated

+ 1 - 0
src/client/js/components/Navbar/PageCreator.jsx

@@ -11,6 +11,7 @@ const PageCreator = (props) => {
     ? (<div>Created in <span className="text-muted">{createdAt}</span></div>)
     ? (<div>Created in <span className="text-muted">{createdAt}</span></div>)
     : (<div><div>Created by <a href={userPageRoot(creator)}>{creator.name}</a></div><div className="text-muted">{createdAt}</div></div>);
     : (<div><div>Created by <a href={userPageRoot(creator)}>{creator.name}</a></div><div className="text-muted">{createdAt}</div></div>);
   const pictureSize = isCompactMode ? 'xs' : 'sm';
   const pictureSize = isCompactMode ? 'xs' : 'sm';
+
   return (
   return (
     <div className="d-flex align-items-center">
     <div className="d-flex align-items-center">
       <div className="mr-2" href={userPageRoot(creator)} data-toggle="tooltip" data-placement="bottom" title={creator.name}>
       <div className="mr-2" href={userPageRoot(creator)} data-toggle="tooltip" data-placement="bottom" title={creator.name}>

+ 1 - 0
src/client/js/components/Navbar/RevisionAuthor.jsx

@@ -11,6 +11,7 @@ const RevisionAuthor = (props) => {
     ? (<div>Updated in <span className="text-muted">{updatedAt}</span></div>)
     ? (<div>Updated in <span className="text-muted">{updatedAt}</span></div>)
     : (<div><div>Updated in  <a href={userPageRoot(revisionAuthor)}>{revisionAuthor.name}</a></div><div className="text-muted">{updatedAt}</div></div>);
     : (<div><div>Updated in  <a href={userPageRoot(revisionAuthor)}>{revisionAuthor.name}</a></div><div className="text-muted">{updatedAt}</div></div>);
   const pictureSize = isCompactMode ? 'xs' : 'sm';
   const pictureSize = isCompactMode ? 'xs' : 'sm';
+
   return (
   return (
     <div className="d-flex align-items-center">
     <div className="d-flex align-items-center">
       <div className="mr-2" href={userPageRoot(revisionAuthor)} data-toggle="tooltip" data-placement="bottom" title={revisionAuthor.name}>
       <div className="mr-2" href={userPageRoot(revisionAuthor)} data-toggle="tooltip" data-placement="bottom" title={revisionAuthor.name}>