# The welcome widget shows a welcome message explaining a few things about Zen.
# It also shows a list of links to common resources such as the documentation.
Dashboard::Widget.add do |w|
  w.name  = :welcome
  w.title = 'dashboard.widgets.titles.welcome'
  w.data  = lambda do |instance|
    return render_view(:widget__welcome)
  end
end

# The welcome widget shows a welcome message explaining a few things about Zen.
# It also shows a list of links to common resources such as the documentation.
Dashboard::Widget.add do |w|
  w.name  = :welcome
  w.title = 'dashboard.widgets.titles.welcome'
  w.data  = lambda do |instance|
    return render_file(__DIR__('../view/admin/dashboard/widget/welcome.xhtml'))
  end
end

Use render_file for the "Welcome" widget.
Use render_file for the "Welcome" widget.

Signed-off-by: Yorick Peterse <82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com>