From c3591d04490d10b7a05e1aefff903430fecc2ba8 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 20 Sep 2012 14:47:20 +0200 Subject: clean uploading --- templates/base.html | 14 ++++++++---- templates/bom_upload.html | 52 +++++++++++++++++++++++++++++++++++--------- templates/home.html | 17 +++++++++++++++ templates/static/default.css | 2 +- templates/user.html | 13 +++++++++++ 5 files changed, 83 insertions(+), 15 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 4fe66ad..ee8a54c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,6 +2,7 @@ bommom + + @@ -24,14 +26,18 @@ function login() { bommom.com {{ range .BreadCrumbs }} / {{.}} {{end}} diff --git a/templates/bom_upload.html b/templates/bom_upload.html index 8cc15c8..04126c3 100644 --- a/templates/bom_upload.html +++ b/templates/bom_upload.html @@ -4,21 +4,53 @@

{{ .BomMeta.Name }} is a bom.

{{ template "BOM_INFO" . }}
- {{ else }}

{{ .name }} could be a bom.

-Owner: {{ .user }}
-
- {{ end }} -{{ if .error }}

{{ .error }}

{{ end }} -
-Version:
-Created: now!
-
- + + {{ if .error }} +
+ Error! {{ .error }} +
+ {{ end }} +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + .json, .xml, or .csv +
+
+
+
+ +
+
{{ template "FOOTER" . }} diff --git a/templates/home.html b/templates/home.html index 40e8f6c..41db698 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,5 +1,22 @@ {{ template "HEADER" . }}

this is bomom.

+
+

+bommom is a tool for publishing and analysing electronics "bill of materials", +which are lists of components required to assemble a device like a digital +watch or a space telescope control module. +

+

+this is an open source project; get the code at git.bnewbold.net/bommom or github.com/bnewbold/bommom. the +project includes a command line tool for managing and converting repositories +of BOMs. it is written in golang (the "go" +programming language). +

+
+ +

all BOMs from all users

{{ range .BomList }} diff --git a/templates/static/default.css b/templates/static/default.css index 7ea7b81..045486a 100644 --- a/templates/static/default.css +++ b/templates/static/default.css @@ -1147,7 +1147,7 @@ input[type="tel"], input[type="color"], .uneditable-input { display: inline-block; - height: 20px; + /* height: 20px; */ padding: 4px 6px; margin-bottom: 9px; font-size: 14px; diff --git a/templates/user.html b/templates/user.html index 995819c..7367bc1 100644 --- a/templates/user.html +++ b/templates/user.html @@ -1,5 +1,18 @@ {{ template "HEADER" . }} +{{ if .IsCommon }} +

publicly mirrored BOMs

+
+here BOMs from the "commons" of publicly available open hardware designs are +collected. any logged in bommom user can submit +or edit BOMs here. +
+ +

all BOMs in the commons

+{{ else }}

{{ .UserName }} is a bommom user.

+

all of {{ .UserName }}'s BOMs

+{{ end }} +
{{ range .BomList }} -- cgit v1.2.3