]> Untitled Git - lemmy.git/commitdiff
Moving view source.
authorDessalines <tyhou13@gmx.com>
Sun, 1 Mar 2020 03:16:52 +0000 (22:16 -0500)
committerDessalines <tyhou13@gmx.com>
Sun, 1 Mar 2020 03:16:52 +0000 (22:16 -0500)
ui/src/components/post-listing.tsx

index d57aa66366a15b7b1fd05ea4d2170bb6dd39ce95..519c7f740b5d81d3f4204b2458326fe7c1546bd8 100644 (file)
@@ -525,6 +525,16 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
                       </li>
                     ) : (
                       <>
+                        {this.props.showBody && post.body && (
+                          <li className="list-inline-item">
+                            <span
+                              className="pointer"
+                              onClick={linkEvent(this, this.handleViewSource)}
+                            >
+                              {i18n.t('view_source')}
+                            </span>
+                          </li>
+                        )}
                         {this.canModOnSelf && (
                           <>
                             <li className="list-inline-item">
@@ -747,16 +757,6 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
                     )}
                   </>
                 )}
-                {this.props.showBody && post.body && (
-                  <li className="list-inline-item">
-                    <span
-                      className="pointer"
-                      onClick={linkEvent(this, this.handleViewSource)}
-                    >
-                      {i18n.t('view_source')}
-                    </span>
-                  </li>
-                )}
               </ul>
               {this.state.showRemoveDialog && (
                 <form