Factor tree and blob tree view items

Those two partials were almost the same.