Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb28a1fd authored by Ronak's avatar Ronak
Browse files

verified boot added

parent ba319cf3
Loading
Loading
Loading
Loading
+23 −20
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@
              <label for="battery" class="label-selector"><b>Removable battery</b></label>
              <div class="radio">
                <label class="radio-label" for="dBattery">
                  <input type="radio" class="rLabel" id="dBattery" name="battery" value="-1" />
                  <input type="radio" class="rLabel" id="dBattery" name="battery" value="-1" checked/>
                  <span class="ml-1">Doesn't matter</span>
                </label>
              </div>
@@ -144,7 +144,7 @@
              <label for="sim" class="label-selector"><b>SIM slots</b></label>
              <div class="radio">
                <label class="radio-label" for="dSim">
                  <input type="radio" class="rLabel" id="dSim" name="sim" value="-1" />
                  <input type="radio" class="rLabel" id="dSim" name="sim" value="-1" checked/>
                  <span class="ml-1">Doesn't matter</span>
                </label>
              </div>
@@ -171,7 +171,7 @@
              <label for="device-type" class="label-selector"><b>Device Type</b></label>
              <div class="radio">
                <label class="radio-label" for="device-type-0">
                  <input type="radio" class="rLabel" id="device-type-0" name="device-type" value="-1" />
                  <input type="radio" class="rLabel" id="device-type-0" name="device-type" value="-1" checked/>
                  <span class="ml-1">Doesn't matter</span>
                </label>
              </div>
@@ -188,23 +188,23 @@
                </label>
              </div>
            </div>
            <div class="col-sm-2" id="verified_boot">
              <label for="verified_boot" class="label-selector"><b>Verified Boot Status</b></label>
            <div class="col-sm-2" id="verified-boot">
              <label for="verified-boot" class="label-selector"><b>Verified Boot Status</b></label>
              <div class="radio">
                <label class="radio-label" for="verified_boot-0">
                  <input type="radio" class="rLabel" id="verified_boot-0" name="verified_boot" value="-1" />
                <label class="radio-label" for="verified-boot-0">
                  <input type="radio" class="rLabel" id="verified-boot-0" name="verified-boot" value="-1" checked/>
                  <span class="ml-1">All</span>
                </label>
              </div>
              <div class="radio">
                <label class="radio-label" for="verified_boot-1">
                  <input type="radio" class="rLabel" id="verified_boot-1" name="verified_boot" value="not-possible" />
                <label class="radio-label" for="verified-boot-1">
                  <input type="radio" class="rLabel" id="verified-boot-1" name="verified-boot" value="no" />
                  <span class="ml-1">Not possible</span>
                </label>
              </div>
              <div class="radio">
                <label class="radio-label" for="verified_boot-2">
                  <input type="radio" class="rLabel" id="verified_boot-2" name="verified_boot" value="supported" />
                <label class="radio-label" for="verified-boot-2">
                  <input type="radio" class="rLabel" id="verified-boot-2" name="verified-boot" value="yes" />
                  <span class="ml-1">Supported only</span>
                </label>
              </div>
@@ -219,7 +219,7 @@
              </div>
              <div class="radio">
                <label class="radio-label" for="legacy-1">
                  <input type="radio" class="rLabel" id="legacy-1" name="legacy" value="no" />
                  <input type="radio" class="rLabel" id="legacy-1" name="legacy" value="no" checked/>
                  <span class="ml-1">No</span>
                </label>
              </div>
@@ -263,7 +263,14 @@
          {%- if device.legacy == "yes" -%}
          {%- assign legacy_devices = legacy_devices | plus:'1' -%}
          {%- endif -%}
          <tr data-device-type="{{ device.type }}" data-legacy="{{ device.legacy }}">
          {%- assign isVerifiedBoot = 'no' -%}
          {% for el in device.verified_boot %}
            {% if el.supported == 'yes' %}
            {%- assign isVerifiedBoot = 'yes' -%}
            {% endif %}
          {% endfor %}
          <tr data-device-type="{{ device.type }}" data-legacy="{{ device.legacy }}"
            data-verified-boot="{{ isVerifiedBoot }}">
            <td class="brand">{{ vendor.name }}</td>

            {% if device.models %}
@@ -398,14 +405,10 @@
              {% endif %}
            </td>
            <td class="verified-boot">
              {% if device.verified_boot %}
                {% for el in device.verified_boot %}
                  {% if el.supported == 'yes' %}
                    <li>{{ el.vendor }}</li>
                  {% endif %}
                {% endfor %}
              {% if isVerifiedBoot == 'yes' %}
              <a href="{{ device.codename }}">See supported vendors</a>
              {% else %}
              Not possible
              Not Possible
              {% endif %}
            </td>
          </tr>
+104 −95
Original line number Diff line number Diff line
@@ -53,6 +53,15 @@ function updateFilters() {
      })
      continue;
    }
    if (column === "verified-boot" && value != "-1") {
      $(".smartphone-table tbody tr").each((_, el) => {
        const dataVerifiedBoot = $(el).attr("data-verified-boot");
        if (value !== dataVerifiedBoot) {
          $(el).toggle(false);
        }
      })
      continue;
    }
    if (column === "legacy") {
      $(".smartphone-table tbody tr").each((_, el) => {
        const legacyDevice = $(el).attr("data-legacy");
@@ -139,7 +148,7 @@ $(document).ready(function() {

  addFilterRadio("battery", "battery");
  addFilterRadio("sim", "sim");

  addFilterRadio("verified-boot", "verified-boot");

  $('#btnReset').on('click', function () {
    clear_form_elements("device-search");