Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling and formatting fixes for jobDetails view #80

Merged
merged 1 commit into from
Jan 4, 2018

Conversation

emhagman
Copy link
Contributor

@emhagman emhagman commented Jan 4, 2018

  1. Added <pre> formatting using highlight.js
  2. Fixed an issue with the <pre> tag and whitespace control when viewing the template inline
  3. Set a max height of 250px to the <pre> tag with overflow-y: scroll
  4. Put the "Permalinks" on a new row so that long id's don't overflow outside of tag (we used uuid.v4() for instance, a pretty long id)
  5. Formatted this.returnvalue using the json helper as well in case the returnvalue is not just a string

If you don't want to accept all changes, I can make a separate pull request for just the whitespace control so that the <pre> tags look proper on the inline view.

@@ -101,7 +101,7 @@
</h4>
</a>
<div id="collapse{{encodeIdAttr this.id}}" class="collapse">
{{> dashboard/jobDetails this basePath=../basePath displayJobInline=true queueName=../queueName queueHost=../queueHost jobState=../state }}
{{~> dashboard/jobDetails this basePath=../basePath displayJobInline=true queueName=../queueName queueHost=../queueHost jobState=../state }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not know about using tildes to control whitespace, neat!

@bradvogel bradvogel merged commit be866d3 into bee-queue:master Jan 4, 2018
@bradvogel
Copy link
Contributor

Thanks! published as 2.3.1

@emhagman emhagman deleted the pre-tag-format branch January 4, 2018 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants