Skip to content

Instantly share code, notes, and snippets.

@gjbagrowski
Created July 1, 2014 15:43
Show Gist options
  • Save gjbagrowski/7047e5c45ce8c49423a8 to your computer and use it in GitHub Desktop.
Save gjbagrowski/7047e5c45ce8c49423a8 to your computer and use it in GitHub Desktop.
MainView = React.createClass
mixins: [RouterHelpersMixin]
render: ->
<body>
<NavbarView
actions={@props.models.actions}
filters={@props.models.navbarFilters}
account={@props.models.account} />
<LoadingMessageView />
<div className="container-fluid">
<div className="row">
<div className="col-md-2">
<SidebarView
router={@props.router}
pages={@props.router.helper.pages} />
</div>
<div className="col-md-10 main-content">
<div className="row">
<div className="col-xs-12">
<TabsView
router={@props.router}
tabs={@props.router.helper.tabs} />
</div>
</div>
<div className="tab-content">
<div className="row">
<div className="col-sm-12">
<FilterBarAdapter
router={@props.router}
models={@props.models}
key={@getRouteKey()} />
</div>
</div>
<hr />
<div className="row">
<div className="col-sm-12">
{@transferPropsTo <ContentView />}
</div>
</div>
</div>
</div>
</div>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment