|
5 | 5 |
|
6 | 6 | <div id="content"> |
7 | 7 | <div class="about-block"> |
8 | | - <h2><%== TeSS::Config.site['title'] %></h2> |
9 | | - <p><%== t 'about.registry' %></p> |
10 | | - |
11 | | - <p><%== t 'about.history' %></p> |
| 8 | + <% if current_space.default? %> |
| 9 | + <h2><%== TeSS::Config.site['title'] %></h2> |
| 10 | + <p><%== t 'about.registry' %></p> |
| 11 | + |
| 12 | + <p><%== t 'about.history' %></p> |
| 13 | + <% else %> |
| 14 | + <h2><%= current_space.title %></h2> |
| 15 | + <p><%= render_markdown(current_space.description) %></p> |
| 16 | + <% if current_space.user %> |
| 17 | + <div> |
| 18 | + <%= t 'about.spaces.owner' %> |
| 19 | + <ul> |
| 20 | + <li><%= link_to current_space.user.name, current_space.user %></li> |
| 21 | + </ul> |
| 22 | + </div> |
| 23 | + <% end %> |
| 24 | + <% if current_space.administrators.any? %> |
| 25 | + <div> |
| 26 | + <%= t 'about.spaces.admins' %> |
| 27 | + <ul> |
| 28 | + <% current_space.administrators.each do |admin| %> |
| 29 | + <li><%= link_to admin.name, admin %></li> |
| 30 | + <% end %> |
| 31 | + </ul> |
| 32 | + </div> |
| 33 | + <% end %> |
| 34 | + <% end %> |
12 | 35 |
|
13 | 36 | <% @feature_count = 0 %> |
14 | 37 |
|
|
22 | 45 | <div class="col-lg-10 col-lg-pull-2 about-resource"> |
23 | 46 | <p><%== t 'about.events' %></p> |
24 | 47 |
|
25 | | - <p><%== t('about.collect_events', site_name: TeSS::Config.site['title_short'], count: Event.distinct.count(:content_provider_id), nominatim: t('about.nominatim')) %></p> |
| 48 | + <p><%== t('about.collect_events', site_name: current_space.title, count: Event.distinct.count(:content_provider_id), nominatim: t('about.nominatim')) %></p> |
26 | 49 |
|
27 | 50 | <br/> |
28 | 51 |
|
|
45 | 68 | <div class="col-lg-10 col-lg-pull-2 about-resource"> |
46 | 69 | <p><%== t 'about.materials' %></p> |
47 | 70 |
|
48 | | - <p><%== t('about.collect_materials', site_name: TeSS::Config.site['title_short'], count: Material.distinct.count(:content_provider_id)) %> |
| 71 | + <p><%== t('about.collect_materials', site_name: current_space.title, count: Material.distinct.count(:content_provider_id)) %> |
49 | 72 | </p> |
50 | 73 |
|
51 | 74 | <br/> |
|
0 commit comments