Skip to content

Commit

Permalink
added google view
Browse files Browse the repository at this point in the history
  • Loading branch information
anvaka committed Mar 18, 2020
1 parent 325608b commit ab12db4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/galaxy/nodeDetails/templates/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import debian from './debian.jsx';
import fedora from './fedora.jsx';
import nuget from './nuget.jsx';
import python from './python.jsx';
import google from './google.jsx';

import github from './github.jsx';

Expand All @@ -31,5 +32,6 @@ export default {
fedora: fedora,
nuget: nuget,
python: python,
'covid-lit': google,
default: defaultTemplate
}
13 changes: 13 additions & 0 deletions src/galaxy/nodeDetails/templates/google.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import commonPackageTemplate from './commonPackageTemplate.jsx';

export default require('maco').template(google, React);

function google(props) {
var model = props.model;

var link = 'http://www.google.com/search?q=' + encodeURIComponent(model.name);
var linkText = model.name;

return commonPackageTemplate(model, link, linkText);
}

0 comments on commit ab12db4

Please sign in to comment.