From cf2c56c7061b7ed40fdd3b40a352ddb9c9b7371f Mon Sep 17 00:00:00 2001 From: alexwl Date: Tue, 2 Oct 2018 13:17:04 +0300 Subject: Initial commit --- javascript/app/templates/package/index.hbs | 12 ++++++++++++ javascript/app/templates/package/search.hbs | 21 +++++++++++++++++++++ javascript/app/templates/package/show.hbs | 1 + javascript/app/templates/package/show/file.hbs | 16 ++++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 javascript/app/templates/package/index.hbs create mode 100644 javascript/app/templates/package/search.hbs create mode 100644 javascript/app/templates/package/show.hbs create mode 100644 javascript/app/templates/package/show/file.hbs (limited to 'javascript/app/templates/package') diff --git a/javascript/app/templates/package/index.hbs b/javascript/app/templates/package/index.hbs new file mode 100644 index 0000000..e9bc592 --- /dev/null +++ b/javascript/app/templates/package/index.hbs @@ -0,0 +1,12 @@ +
+
+ {{input class="form-control" type="text" value=query placeholder="Module name"}} +
+ +
diff --git a/javascript/app/templates/package/search.hbs b/javascript/app/templates/package/search.hbs new file mode 100644 index 0000000..ebc4d52 --- /dev/null +++ b/javascript/app/templates/package/search.hbs @@ -0,0 +1,21 @@ +
+ Query : {{model.query}} +
+
+ {{#paginated-list url=model.url as |identifiers|}} + + {{/paginated-list}} +
diff --git a/javascript/app/templates/package/show.hbs b/javascript/app/templates/package/show.hbs new file mode 100644 index 0000000..c24cd68 --- /dev/null +++ b/javascript/app/templates/package/show.hbs @@ -0,0 +1 @@ +{{outlet}} diff --git a/javascript/app/templates/package/show/file.hbs b/javascript/app/templates/package/show/file.hbs new file mode 100644 index 0000000..b127fd7 --- /dev/null +++ b/javascript/app/templates/package/show/file.hbs @@ -0,0 +1,16 @@ +{{#if model.isHaskellModule}} + {{haskell-module + path=model.id + name=model.name + packageId=model.packageId + componentId=model.componentId + html=model.sourceCodeHtml + identifiers=model.identifiers + occurrences=model.occurrences + colorTheme=settings.colorTheme + declarations=model.declarations + findReferences=(action "findReferences") + }} +{{else}} + {{text-file text=model.text path=model.id}} +{{/if}} -- cgit v1.2.3