|
12 | 12 | <o:sidebar />
|
13 | 13 | <div class="span10">
|
14 | 14 | <div class="hero-unit">
|
15 |
| -<o:landingPageWelcome /> |
| 15 | +<div class="row-fluid"> |
| 16 | +<div class="span2 visible-desktop"><img src="resources/images/openid_connect_large.png"/></div> |
| 17 | + |
| 18 | +<div class="span10"> |
| 19 | +<h1><spring:message code="home.welcome.title"/></h1> |
| 20 | +<p><spring:message code="home.welcome.body"/></p> |
| 21 | +</div> |
| 22 | +</div> |
16 | 23 | </div>
|
17 | 24 | <!-- Example row of columns -->
|
18 | 25 | <div class="row-fluid">
|
19 | 26 | <div class="span6">
|
20 |
| -<o:landingPageAbout /> |
| 27 | +<h2><spring:message code="home.about.title"/></h2> |
| 28 | + |
| 29 | +<p><spring:message code="home.about.body"/></p> |
| 30 | + |
| 31 | +<p><a class="btn" href="http://github.com/mitreid-connect/"><spring:message code="home.more"/> »</a></p> |
21 | 32 | </div>
|
22 | 33 | <div class="span6">
|
23 |
| -<o:landingPageContact /> |
| 34 | +<h2><spring:message code="home.contact.title"/></h2> |
| 35 | +<p> |
| 36 | +<spring:message code="home.contact.body"/> |
| 37 | +</p> |
24 | 38 | </div>
|
25 | 39 |
|
26 | 40 | </div>
|
27 | 41 | <hr>
|
28 | 42 | <!-- Example row of columns -->
|
29 | 43 | <div class="row-fluid">
|
30 | 44 | <div class="span12">
|
31 |
| -<o:landingPageStats /> |
| 45 | +<h2><spring:message code="home.statistics.title"/></h2> |
| 46 | + |
| 47 | +<p id="statsloader" class="muted"><spring:message code="home.statistics.loading"/></p> |
| 48 | + |
| 49 | +<p id="stats"> |
| 50 | + <spring:message code="home.statistics.number_users" arguments="?"/> |
| 51 | + <spring:message code="home.statistics.number_clients" arguments="?"/> |
| 52 | + <spring:message code="home.statistics.number_approvals" arguments="?"/> |
| 53 | +</p> |
32 | 54 | </div>
|
33 | 55 | </div>
|
34 | 56 |
|
35 | 57 | </div>
|
36 | 58 | </div>
|
37 | 59 | </div>
|
| 60 | + |
| 61 | + |
| 62 | +<script type="text/javascript"> |
| 63 | +// load stats dynamically to make main page render faster |
| 64 | +
|
| 65 | +$(document).ready(function() { |
| 66 | +$('#stats').hide(); |
| 67 | + var base = $('base').attr('href'); |
| 68 | +
|
| 69 | + $.getJSON(base + 'api/stats/summary', function(data) { |
| 70 | + var stats = data; |
| 71 | + $('#userCount').html(stats.userCount); |
| 72 | + $('#clientCount').html(stats.clientCount); |
| 73 | + $('#approvalCount').html(stats.approvalCount); |
| 74 | + $('#statsloader').hide(); |
| 75 | + $('#stats').show(); |
| 76 | + |
| 77 | + }); |
| 78 | +}); |
| 79 | +</script> |
| 80 | + |
38 | 81 | <o:footer />
|
0 commit comments