## This file is part of Codeface. Codeface is free software: you can
## redistribute it and/or modify it under the terms of the GNU General Public
## License as published by the Free Software Foundation, version 2.
##
## This program is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
## FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
## details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
##
## Copyright 2013 by Siemens AG, Wolfgang Mauerer <wolfgang.mauerer@siemens.com>
## All Rights Reserved.

##
## Software Project Dashboard (ui.r) 
##

shinybootstrap2::withBootstrap2({
shinyUI(bootstrapPage(

  tagList(
  	tags$head(
      
      
      ##
      ## TODOS: Einbinden der js resourcen aus dem nav/js verzeichnis (js pfad generieren und hier mit einbinden)
      ##
  	  
  		## Adapt the styles as needed (some seem to be ignored)
  		tags$link(rel = 'stylesheet', type = 'text/css', href = 'styles.css'),
  		tags$script(src = "gridsterWidgetsExt.js"),
      tags$script(src = "nav/qa_modal.js"),
      tags$script(src = 'js/raphael.2.1.0.min.js'),
      tags$script(src = 'js/justgage.1.0.1.min.js'),
      tags$script(src = "justgage_binding.js"),
      tags$script(src = "shiny_status_binding.js")
  	),
    
  	div(class = "container",
      div(class = "row", style="margin-top: 10px; height: 36px;",
          div(class = "span7", style = "height: 100%;",
  	          breadcrumbOutput("quantarchBreadcrumb")),
          div( class="span1", style = "padding: 3px 0px; text-align: center;",
              gridsterButton("gridsterActionMenu","addWidgetDialog")),
          div( class="span4",
              compareWithProjectsOutput("selectpidsui"))
          ),
  		div(class = "row",
  			div(class = "span12",
  				gridster(width = 260, height = 260))
  			)
  		),
  	## finally some hidden input
  	cookieInput("qacompareids")
  )
	))
}) # end of shinybootstrap2
