Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (54 sloc) 2.09 KB
<% if current_user && - current_user.created_at < 1.week %>
<div class="alert alert-success">
<button type="button" class="close" data-dismiss="alert">×</button>
<h2>Hello, welcome to Public Lab!</h2>
This is your dashboard, where recent updates from other community members show up. It'll keep you updated with
recent progress, news and developments.
To get started at Public Lab, try:
<a class="btn btn-sm btn-light" href="/questions" target="_blank">
Asking a question
<a class="btn btn-sm btn-light" href="/methods" target="_blank">
Exploring projects
<% end %>
<div class="dashboard container">
<div class="row">
<div class="col-lg-8">
<%= render partial: "dashboard/header" %>
<div class="dashboard-blog">
<% if @blog %>
<% if @blog.main_image %>
<div class="img" style="background-image: url('<%= @blog.main_image.path(:large) %>')">
<% elsif @blog.scraped_image %>
<div class="img" style="background-image: url('<%= @blog.scraped_image %>')">
<% end %>
<div class="blog-caption">
<small class="float-right d-none d-lg-inline"><%= raw translation('dashboard.dashboard.from_blog', :url => '/blog') %></small>
<a class="title" href="/blog"><%= @blog.title %></a>
<small><%= t('') %>
<a href="/profile/<%= %>"><%= %></a></small>
<% if @blog.main_image || @blog.scraped_image %>
<% end %>
<% end %>
<%= render partial: "dashboard/activity", locals: {activity: @activity, notes: @notes} %>
<div class="col-lg-4">
<%= feature('dashboard-feature') %>
<%= render partial: "sidebar/dashboard" %>
<%= stylesheet_link_tag "dashboard" %>
<%= javascript_include_tag "dashboard" %>
You can’t perform that action at this time.