• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

signdict / website / ac791a6a79ac45bb1fb32e214c33c7890f845e69

04 Oct 2025 07:53PM UTC coverage: 90.727%. First build
ac791a6a79ac45bb1fb32e214c33c7890f845e69

Pull #1660

github

bitboxer
More deprecations
Pull Request #1660: Update a few things

55 of 61 new or added lines in 26 files covered. (90.16%)

1223 of 1348 relevant lines covered (90.73%)

86.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/lib/sign_dict_web/controllers/backend/statistic_controller.ex
1
defmodule SignDictWeb.Backend.StatisticController do
2
  use SignDictWeb, :controller
3

4
  def index(conn = %{assigns: %{current_user: current_user}}, _params) do
5
    if Canada.Can.can?(current_user, "statistic", %SignDict.Entry{}) do
1✔
6
      render(conn, "index.html")
1✔
7
    else
8
      conn
9
      |> put_flash(:info, gettext("You cannot view this page."))
×
NEW
10
      |> redirect(to: Router.Helpers.backend_dashboard_path(conn, :index))
×
11
    end
12
  end
13
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc