diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py index da4da7f742..6ad8081512 100644 --- a/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py +++ b/scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/scmhooks.py @@ -98,10 +98,6 @@ def callback(ui, repo, hooktype, node=None): return abort def preHook(ui, repo, hooktype, node=None, source=None, pending=None, **kwargs): - log_file = open("/tmp/hg_callback.log", "a") - log_file.write("in callHookUrl\n") - log_file.close() - # older mercurial versions if pending != None: pending() diff --git a/scm-ui-components/packages/ui-components/src/layout/Page.js b/scm-ui-components/packages/ui-components/src/layout/Page.js index 4bfa3aae03..eea9f66f72 100644 --- a/scm-ui-components/packages/ui-components/src/layout/Page.js +++ b/scm-ui-components/packages/ui-components/src/layout/Page.js @@ -44,11 +44,22 @@ class Page extends React.Component { renderPageHeader() { const { title, subtitle, children, classes } = this.props; - let content = null; + let pageActions = null; let pageActionsExists = false; React.Children.forEach(children, child => { if (child && child.type.name === PageActions.name) { - content = child; + pageActions = ( +
+
+ {child} +
+
+ ); pageActionsExists = true; } }); @@ -63,9 +74,7 @@ class Page extends React.Component { <Subtitle subtitle={subtitle} /> </div> - <div className="column is-two-fifths"> - <div className={classNames(classes.spacing, "is-mobile-create-button-spacing")}>{content}</div> - </div> + {pageActions} </div> {underline} </>