<p>
  <div class="btn-group">
    <%
      cookies = request.cookies
      prefered_editor = cookies['prefered_editor'] if 'prefered_editor' in cookies else ''
    %>
    <button id="edit" class="btn btn-default btn-sm">
      <i class="glyphicon glyphicon-share-alt"></i> ${_('Edit with')}
      <span id="prefered_editor"></span>
    </button>
    <button data-toggle="dropdown" class="btn btn-default btn-sm dropdown-toggle"><span class="caret"></span>
    </button>
    <ul id="editDropdown" class="dropdown-menu">
      <li id="josm"><a role="menuitem">JOSM</a></li>
      <li id="iDeditor"><a role="menuitem">iD editor</a></li>
      <li id="potlatch2"><a role="menuitem">Potlatch 2</a></li>
      <li id="wp"><a role="menuitem">Walking Papers</a></li>
    </ul>
    <script>
      osmtm.prefered_editor = "${prefered_editor}";
    </script>
  </div>
  <button class="btn btn-sm btn-link">.osm</button>
</p>

<p>
  <div class="btn-group">
    <%
      cookies = request.cookies
      prefered_editor = cookies['prefered_editor'] if 'prefered_editor' in cookies else ''
    %>
    <button id="edit" class="btn btn-default btn-sm">
      <i class="glyphicon glyphicon-share-alt"></i> ${_('Edit with')}
      <span id="prefered_editor"></span>
    </button>
    <button data-toggle="dropdown" class="btn btn-default btn-sm dropdown-toggle"><span class="caret"></span>
    </button>
    <ul id="editDropdown" class="dropdown-menu">
      <li id="josm"><a role="menuitem">JOSM</a></li>
      <li id="iDeditor"><a role="menuitem">iD editor</a></li>
      <li id="potlatch2"><a role="menuitem">Potlatch 2</a></li>
      <li id="wp"><a role="menuitem">Walking Papers</a></li>
    </ul>
    <script>
      osmtm.prefered_editor = "${prefered_editor}";
    </script>
  </div>
</p>

Remove .osm link. Not implemented yet
Remove .osm link. Not implemented yet
