From 3d79cdd95e8d0ec9c9d300e7816c49bb97e61b08 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Wed, 1 Jun 2016 17:49:50 +0100 Subject: [PATCH] github css tidy up --- .../components/section/github/type-editor.hbs | 13 +-- .../section/github/type-renderer.hbs | 85 ++----------------- documize/section/github/github.go | 40 +++------ 3 files changed, 22 insertions(+), 116 deletions(-) diff --git a/app/app/templates/components/section/github/type-editor.hbs b/app/app/templates/components/section/github/type-editor.hbs index 2bb96e74..8487e8e8 100644 --- a/app/app/templates/components/section/github/type-editor.hbs +++ b/app/app/templates/components/section/github/type-editor.hbs @@ -13,11 +13,7 @@ } .github-list { - background-color: #e2e4e6; - padding: 10px; - border-radius: 3px; margin: 10px 10px 0 0; - max-width: 300px; } .github-list-title { @@ -41,8 +37,8 @@
-
Select Repository Branch
-
Choose repository branch to watch
+
Select Repository & Branch
+
Choose source of code commits to be displayed
{{#if noRepos}}
@@ -51,14 +47,13 @@ {{else}}
-
Select Repository
+
Select repository
{{ui-select id="boards-dropdown" content=repos action=(action 'onRepoChange') optionValuePath="id" optionLabelPath="name" selection=config.repo}}
-
Select branch to watch
+
Select branch
-
{{config.repo.name}}
{{#each config.lists as |list|}}
{{#if list.included}} diff --git a/app/app/templates/components/section/github/type-renderer.hbs b/app/app/templates/components/section/github/type-renderer.hbs index ca51769d..add8791b 100644 --- a/app/app/templates/components/section/github/type-renderer.hbs +++ b/app/app/templates/components/section/github/type-renderer.hbs @@ -1,81 +1,8 @@ {{{page.body}}} diff --git a/documize/section/github/github.go b/documize/section/github/github.go index 31382ff7..106f5d74 100644 --- a/documize/section/github/github.go +++ b/documize/section/github/github.go @@ -336,47 +336,29 @@ func (*GithubT) Render(config, data string) string { var err error t, err = t.Parse(` -

There are {{ .CommitCount }} commits for branch {{.Config.Branch}} of repository {{.Repo.Name}}.

- +

There are {{ .CommitCount }} commits for branch {{.Config.Branch}} of repository {{.Repo.Name}}.

- {{range $data := .Data}} -
Commits on {{ $data.Day }}
- - {{end}} -
`)