Skip to content

Commit

Permalink
Fixed issues with links to pug template
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin committed Nov 2, 2018
1 parent 69a7efa commit 0102146
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pullRequests.getPullRequests({
## Gmail

### compileTemplate(context)
Compiles template by given context. If template is missing from user configuration build in template will be used
Compiles template by given context. If template is missing from user configuration build in template will be used. Template engine is pug.

- `context` - Template context object. Build in template expects an following object
```Object
Expand Down Expand Up @@ -225,7 +225,7 @@ pullRequests.getPullRequests({
* `request` - OAuth2 and API requests
* `request-promise` - OAuth2 and API requests
* `moment` - used in example to fetch pull requests 24h hours behind in ISO-8601 format
* `handlebars` - used in example to generate email template for given context
* `pug` - used in example to generate email template for given context

# Roadmap
* Looking for ideas :)
Expand Down
6 changes: 3 additions & 3 deletions lib/email.pug
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ table(cellspacing="0" cellpadding="10" style="border-collapse: collapse;font-fam
each pullRequest in pullRequests
tr
td(style="font-family: Arial, Helvetica, sans-serif;border: 1px solid #999;text-align: left;" valign="top")
a(href="{{this.jiraUrl}}")= pullRequest.id
a(href=pullRequest.jiraUrl)= pullRequest.id
td(style="font-family: Arial, Helvetica, sans-serif;border: 1px solid #999;text-align: left;" valign="top")
a(href="{{this.prUrl}}")= pullRequest.title
a(href=pullRequest.prUrl)= pullRequest.title
td(style="font-family: Arial, Helvetica, sans-serif;border: 1px solid #999;text-align: left;" valign="top")
a(href="{{this.author.account}}")= pullRequest.author.displayName
a(href=pullRequest.author.account)= pullRequest.author.displayName
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitbucket-notifications",
"version": "1.2.5",
"version": "1.2.6",
"description": "Node.js application which can send an email with links to all PRs that have been merged in last 24 hours. It connects to Bitbucket, Gmail and Jira with OAuth2 for higher security by simply adding your credentials in configuration file.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 0102146

Please sign in to comment.