Skip to content

Commit

Permalink
ui: add a way to use shortestpath
Browse files Browse the repository at this point in the history
Change-Id: I47701ab0c99dbc463fdcb857362c9f1957bc6c86
Reviewed-on: http://softwarefactory-project.io/r/5031
Reviewed-by: Sylvain Baubeau <sbaubeau@redhat.com>
Tested-by: Sylvain Baubeau <sbaubeau@redhat.com>
Workflow: Sylvain Baubeau <sbaubeau@redhat.com>
Reviewed-by: Nicolas PLANEL <nplanel@redhat.com>
Tested-by: Nicolas PLANEL <nplanel@redhat.com>
Workflow: Nicolas PLANEL <nplanel@redhat.com>
  • Loading branch information
safchain committed Oct 10, 2016
1 parent 37cb513 commit ee81bb0
Show file tree
Hide file tree
Showing 8 changed files with 256 additions and 161 deletions.
4 changes: 3 additions & 1 deletion http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ func (s *Server) renderTemplate(w http.ResponseWriter, page string) {

w.Header().Set("Content-Type", "text/html; charset=UTF-8")
w.WriteHeader(http.StatusOK)
t.Execute(w, s.getTemplateData())
if err = t.Execute(w, s.getTemplateData()); err != nil {
logging.GetLogger().Errorf("Unable to render template: %s", err.Error())
}
}

func unauthorized(w http.ResponseWriter, r *http.Request) {
Expand Down
135 changes: 80 additions & 55 deletions statics/bindata.go

Large diffs are not rendered by default.

31 changes: 0 additions & 31 deletions statics/css/font-awesome.3.0.2.css

This file was deleted.

4 changes: 4 additions & 0 deletions statics/css/font-awesome.4.6.3.min.css

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions statics/css/skydive.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ label {
height: 90%;
}

.node-selection {
cursor: crosshair;
}

.node {
fill: lightsteelblue;
stroke: #888;
Expand All @@ -47,6 +51,14 @@ label {
cursor: pointer;
}

.node-selection .node {
cursor: crosshair !important;
}

.node-invalid-selection .node {
cursor: not-allowed !important;
}

#node-id {
cursor: default;
}
Expand Down Expand Up @@ -240,6 +252,10 @@ path.group {
margin-bottom: 10px;
}

#capture {
font-size: 1.2em;
}

ul.capture-list {
list-style-type: none;
padding: 0px;
Expand Down Expand Up @@ -369,3 +385,22 @@ circle.manager {
#capture_form textarea {
height: 100px;
}

.fa{
font-size: 1.3em;
color: #000;
}

.form-control + .fa-crosshairs{
left: 0;
}

.form-control:focus+.fa-crosshairs{
color: #66afe9;
}

.has-left-icon{
/*Left padding 20px in this case, but it could be different due to other settings - for example in my project it was 25 pixels*/
padding-left: 30px !important;
padding-right: 10px !important;
}
Binary file added statics/fonts/fontawesome-webfont.woff
Binary file not shown.
Loading

0 comments on commit ee81bb0

Please sign in to comment.