File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ export default class TemplateItem extends React.Component {
114114 </ SyntaxHighlighter >
115115 </ div >
116116 < p className = "align-right" >
117- < a className = "faint" href = { this . state . template . HistoryUrl } >
117+ < a className = "faint" href = { this . state . template . HistoryUrl } rel = "noopener noreferrer" target = "_blank" >
118118 History »
119119 </ a >
120120 </ p >
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import jasmineTerminalReporter from "jasmine-terminal-reporter";
3131import eventStream from "event-stream" ;
3232import fs from "fs" ;
3333import jsonlint from "gulp-jsonlint" ;
34+ import path from "path" ;
3435
3536const sass = gulpSass ( dartSass ) ;
3637const clientDir = "app" ;
@@ -292,8 +293,7 @@ function provideMissingData() {
292293 return eventStream . map ( function ( file , cb ) {
293294 var fileContent = file . contents . toString ( ) ;
294295 var template = JSON . parse ( fileContent ) ;
295- var pathParts = file . path . split ( "\\" ) ;
296- var fileName = pathParts [ pathParts . length - 1 ] ;
296+ var fileName = path . basename ( file . path ) ;
297297
298298 if ( ! template . HistoryUrl ) {
299299 template . HistoryUrl = "https://github.com/OctopusDeploy/Library/commits/master/step-templates/" + fileName ;
You can’t perform that action at this time.
0 commit comments