Skip to content

Commit

Permalink
Rework heading links
Browse files Browse the repository at this point in the history
  • Loading branch information
coinop-logan committed Jul 17, 2019
1 parent 2dcdde1 commit 058e07b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@

<body>
<div id='elm'></div>
<script type="text/javascript" src="/DAIHard/static/js/main-25007549cf2b2843ed49.js"></script></body>
<script type="text/javascript" src="/DAIHard/static/js/main-89bdc4f801cfd149b024.js"></script></body>

</html>
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@

<body>
<div id='elm'></div>
<script type="text/javascript" src="/DAIHard/static/js/main-25007549cf2b2843ed49.js"></script></body>
<script type="text/javascript" src="/DAIHard/static/js/main-89bdc4f801cfd149b024.js"></script></body>

</html>

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,17 @@ headerContent model =
, Element.paddingXY 30 17
]
[ headerLink
("Buy " ++ Config.tokenUnitName model.web3Context.factoryType)
"Create a New Offer"
(GotoRoute Routing.Create)
(case model.submodel of
CreateModel _ ->
Active

_ ->
Normal
)
, headerLink
"Sell Offers"
(GotoRoute <| Routing.Marketplace Buyer)
(case model.submodel of
MarketplaceModel marketplaceModel ->
Expand All @@ -105,7 +115,7 @@ headerContent model =
Normal
)
, headerLink
("Sell " ++ Config.tokenUnitName model.web3Context.factoryType)
"Buy Offers"
(GotoRoute <| Routing.Marketplace Seller)
(case model.submodel of
MarketplaceModel marketplaceModel ->
Expand All @@ -115,16 +125,6 @@ headerContent model =
else
Normal

_ ->
Normal
)
, headerLink
"Create a New Offer"
(GotoRoute Routing.Create)
(case model.submodel of
CreateModel _ ->
Active

_ ->
Normal
)
Expand Down

0 comments on commit 058e07b

Please sign in to comment.