2 LuCI - Lua Configuration Interface
4 Copyright (C) 2014, QA Cafe, Inc.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
15 local fs = require "nixio.fs"
17 m = Map("cshark", translate("CloudShark"))
19 if fs.access("/etc/config/cshark") then
20 m:section(SimpleSection).template = "cshark"
22 s = m:section(TypedSection, "cshark", translate("Options"))
26 s:option(Value, "url", translate("CloudShark URL"))
27 s:option(Value, "token", translate("CloudShark API token"))