aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/templates/package/show
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/app/templates/package/show')
-rw-r--r--javascript/app/templates/package/show/file.hbs16
1 files changed, 16 insertions, 0 deletions
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}}